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 7f6dc99 commit f87adf8Copy full SHA for f87adf8
src/wrf/constants.py
@@ -7,6 +7,9 @@
7
from .py3compat import viewitems
8
from ._wrffortran import wrf_constants, omp_constants
9
10
+from packaging.version import Version
11
+np_version = Version(np.__version__)
12
+
13
#: Indicates that all times should be used in a diagnostic routine.
14
ALL_TIMES = None
15
@@ -63,6 +66,9 @@ class ProjectionTypes(object):
63
66
np.dtype(np.float64): Constants.DEFAULT_FILL_DOUBLE
64
67
}
65
68
69
+if np_version < Version('2.0'):
70
+ _DEFAULT_FILL_MAP[np.float_] = Constants.Constants.DEFAULT_FILL_DOUBLE
71
72
if version_info >= (3, ):
73
_DEFAULT_FILL_MAP[np.int_] = Constants.DEFAULT_FILL_INT64
74
else:
0 commit comments