We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c6470 commit 8791224Copy full SHA for 8791224
xarray/backends/scipy_.py
@@ -40,7 +40,7 @@
40
from xarray.core.dataset import Dataset
41
42
43
-NUMPY_2_0 = module_available("numpy", minversion="2.0.0.dev0")
+HAS_NUMPY_2_0 = module_available("numpy", minversion="2.0.0.dev0")
44
45
46
def _decode_string(s):
@@ -84,7 +84,7 @@ def __getitem__(self, key):
84
# adapt handling of copy-kwarg to numpy 2.0
85
# see https://github.com/numpy/numpy/issues/25916
86
# and https://github.com/numpy/numpy/pull/25922
87
- copy = None if NUMPY_2_0 and copy is False else copy
+ copy = None if HAS_NUMPY_2_0 and copy is False else copy
88
89
return np.array(data, dtype=self.dtype, copy=copy)
90
0 commit comments