Skip to content

Commit 10f76e7

Browse files
committed
Numpy item use
1 parent 37307a1 commit 10f76e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrf/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Constants(object):
1616

1717

1818
for key, val in viewitems(wrf_constants.__dict__):
19-
setattr(Constants, key.upper(), val)
19+
setattr(Constants, key.upper(), np.array(val).item())
2020

2121
OMP_SCHED_STATIC = omp_constants.fomp_sched_static
2222
OMP_SCHED_DYNAMIC = omp_constants.fomp_sched_dynamic

0 commit comments

Comments
 (0)