Merge pull request #1867 from j9ac9k/fix-numpy-deprecation

Use built-in int as dtype
This commit is contained in:
Ogi Moore 2021-06-25 09:15:44 -07:00 committed by GitHub
commit 82da8f122e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)