Skip to content

Commit

Permalink
Merge pull request #26 from jjakubassa/master
Browse files Browse the repository at this point in the history
fix: numpy type error + remov legacy argument "multichannel"
  • Loading branch information
rgeirhos authored Oct 20, 2024
2 parents 2393c18 + 6b18b82 commit 3bab9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagecorruptions/corruptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def plasma_fractal(mapsize=256, wibbledecay=3):
'mapsize' must be a power of two.
"""
assert (mapsize & (mapsize - 1) == 0)
maparray = np.empty((mapsize, mapsize), dtype=np.float_)
maparray = np.empty((mapsize, mapsize), dtype=np.float32)
maparray[0, 0] = 0
stepsize = mapsize
wibble = 100
Expand Down

0 comments on commit 3bab9d9

Please sign in to comment.