From 10f76e72c6f460c4ddf2d677f93802be0b9ccece Mon Sep 17 00:00:00 2001 From: erogluorhan Date: Fri, 16 Jul 2021 00:00:07 -0600 Subject: [PATCH] Numpy item use --- src/wrf/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrf/constants.py b/src/wrf/constants.py index 518e88d..d660c62 100755 --- a/src/wrf/constants.py +++ b/src/wrf/constants.py @@ -16,7 +16,7 @@ class Constants(object): for key, val in viewitems(wrf_constants.__dict__): - setattr(Constants, key.upper(), val) + setattr(Constants, key.upper(), np.array(val).item()) OMP_SCHED_STATIC = omp_constants.fomp_sched_static OMP_SCHED_DYNAMIC = omp_constants.fomp_sched_dynamic