We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987ed14 commit 876847eCopy full SHA for 876847e
1 file changed
examples/rottnest.py
@@ -46,7 +46,8 @@
46
var_type = var['_datatype']
47
for attr in ('valid_min', 'valid_max'):
48
if attr in var:
49
- var[attr] = np.cast[var_type](var[attr])
+ var[attr] = np.array(var[attr], dtype=var_type)
50
+
51
52
# update range attributes
53
template.add_extent_attributes()
0 commit comments