Skip to content

Commit 876847e

Browse files
committed
np.cast` was removed in the NumPy 2.0
1 parent 987ed14 commit 876847e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/rottnest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
var_type = var['_datatype']
4747
for attr in ('valid_min', 'valid_max'):
4848
if attr in var:
49-
var[attr] = np.cast[var_type](var[attr])
49+
var[attr] = np.array(var[attr], dtype=var_type)
50+
5051

5152
# update range attributes
5253
template.add_extent_attributes()

0 commit comments

Comments
 (0)