We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 127bce2 + 72017e5 commit 2705aaeCopy full SHA for 2705aae
1 file changed
src/wrf/util.py
@@ -9,6 +9,7 @@
9
from types import GeneratorType
10
import datetime as dt
11
from inspect import getmodule
12
+from netCDF4 import Dataset
13
14
try:
15
from inspect import signature
@@ -134,7 +135,14 @@ def is_multi_file(wrfin):
134
135
is a single NetCDF file object.
136
137
"""
- return (isinstance(wrfin, Iterable) and not isstr(wrfin))
138
+ if isinstance(wrfin, Dataset):
139
+ is_iterable = False
140
+ elif isinstance(wrfin, Iterable):
141
+ is_iterable = True
142
+ else:
143
144
+
145
+ return (is_iterable and not isstr(wrfin))
146
147
148
def has_time_coord(wrfnc):
0 commit comments