Merge pull request #1867 from j9ac9k/fix-numpy-deprecation
Use built-in int as dtype
This commit is contained in:
commit
82da8f122e
@ -900,7 +900,7 @@ class ImageItem(GraphicsObject):
|
||||
step = int(self._xp.ceil((mx - mn) / 500.))
|
||||
bins = []
|
||||
if step > 0.0:
|
||||
bins = self._xp.arange(mn, mx + 1.01 * step, step, dtype=self._xp.int)
|
||||
bins = self._xp.arange(mn, mx + 1.01 * step, step, dtype=int)
|
||||
else:
|
||||
# for float data, let numpy select the bins.
|
||||
bins = self._xp.linspace(mn, mx, 500)
|
||||
|
Loading…
Reference in New Issue
Block a user