File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Constants(object):
1616
1717
1818for key , val in viewitems (wrf_constants .__dict__ ):
19- setattr (Constants , key .upper (), np . asscalar ( val ))
19+ setattr (Constants , key .upper (), val . item ( ))
2020
2121OMP_SCHED_STATIC = omp_constants .fomp_sched_static
2222OMP_SCHED_DYNAMIC = omp_constants .fomp_sched_dynamic
Original file line number Diff line number Diff line change 11from __future__ import (absolute_import , division , print_function )
22
3- from collections import Iterable , OrderedDict
3+ from collections import OrderedDict
4+ from collections .abc import Iterable
45
56import wrapt
67import numpy as np
Original file line number Diff line number Diff line change 11from __future__ import (absolute_import , division , print_function )
22
3- from collections import Iterable
3+ from collections . abc import Iterable
44
55import numpy as np
66
Original file line number Diff line number Diff line change 33import os
44from sys import version_info
55from copy import copy
6- from collections import Iterable , Mapping , OrderedDict
6+ from collections import OrderedDict
7+ from collections .abc import Iterable , Mapping
78from itertools import product , tee
89from types import GeneratorType
910import datetime as dt
You can’t perform that action at this time.
0 commit comments