Skip to content

Commit 49f611a

Browse files
authored
Replace np.float with builtin type float (#6)
np.float and np.int were deprecated with release 1.20.0 https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations and eventually dropped with release 1.24.0 https://numpy.org/doc/stable/release/1.24.0-notes.html#expired-deprecations (Alternatively, np.float can be replaced by np.float64)
1 parent c2e407b commit 49f611a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xplt/timestructure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def update(self, particles, mask=None, autoscale=False):
721721
range=(0, self.bin_count * self.bin_time),
722722
weights=weights,
723723
)
724-
counts = counts.astype(np.float)
724+
counts = counts.astype(float)
725725
if p in ("rate", "current"):
726726
counts /= self.bin_time
727727
if self.relative:

0 commit comments

Comments
 (0)