Browse Source

Merge pull request #128 from muchojp/develop

Library "collections" causes FutureWarning.
lon0
Michaela Sizemore 4 years ago committed by GitHub
parent
commit
e2b6174aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/wrf/constants.py
  2. 3
      src/wrf/decorators.py
  3. 2
      src/wrf/latlonutils.py
  4. 3
      src/wrf/util.py

2
src/wrf/constants.py

@ -16,7 +16,7 @@ class Constants(object): @@ -16,7 +16,7 @@ class Constants(object):
for key, val in viewitems(wrf_constants.__dict__):
setattr(Constants, key.upper(), np.asscalar(val))
setattr(Constants, key.upper(), val.item())
OMP_SCHED_STATIC = omp_constants.fomp_sched_static
OMP_SCHED_DYNAMIC = omp_constants.fomp_sched_dynamic

3
src/wrf/decorators.py

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
from __future__ import (absolute_import, division, print_function)
from collections import Iterable, OrderedDict
from collections import OrderedDict
from collections.abc import Iterable
import wrapt
import numpy as np

2
src/wrf/latlonutils.py

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
from __future__ import (absolute_import, division, print_function)
from collections import Iterable
from collections.abc import Iterable
import numpy as np

3
src/wrf/util.py

@ -3,7 +3,8 @@ from __future__ import (absolute_import, division, print_function) @@ -3,7 +3,8 @@ from __future__ import (absolute_import, division, print_function)
import os
from sys import version_info
from copy import copy
from collections import Iterable, Mapping, OrderedDict
from collections import OrderedDict
from collections.abc import Iterable, Mapping
from itertools import product, tee
from types import GeneratorType
import datetime as dt

Loading…
Cancel
Save