We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52c4cb commit c3e9895Copy full SHA for c3e9895
src/pygrib/_pygrib.pyx
@@ -15,6 +15,11 @@ from numpy import ma
15
import pyproj
16
npc.import_array()
17
18
+# Print scalars legacy style (e.g. (15.0) not np.float64(15.0))
19
+# https://numpy.org/doc/2.2/release/2.0.0-notes.html#representation-of-numpy-scalars-changed
20
+if np.lib.NumpyVersion(np.__version__) >= '2.0.0':
21
+ np.set_printoptions(legacy="1.25")
22
+
23
ctypedef fused float_type:
24
float
25
double
0 commit comments