Commit 8bc9b11
committed
Merge PR #416 (Implement fix in gcpy/regrid.py for numpy)
This merge brings PR #416 (Implement fix in gcpy/regrid.py for numpy
backward compatibility, by @yantosca) into the GCPy development stream.
PR #146 adds a try/except block (in routine regrid_vertical of
gcpy/regrid.py) to first call np.prod, and then if that fails,
to call np.product. The np.product routine was renamed to np.prod
in Numpy 2.0. This will ensure backwards compatibility with older
Numpy versions.
Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1098 | 1105 | | |
1099 | 1106 | | |
1100 | 1107 | | |
| |||
0 commit comments