@@ -208,6 +208,7 @@ def __init__(
208
208
else :
209
209
raise ValueError ("Unsupported mesh type. Choose either: 'spherical' or 'flat'" )
210
210
self .timestamps = timestamps
211
+ self ._loaded_time_indices : Iterable [int ] = [] # type: ignore
211
212
if isinstance (interp_method , dict ):
212
213
if self .name in interp_method :
213
214
self .interp_method = interp_method [self .name ]
@@ -265,6 +266,7 @@ def __init__(
265
266
266
267
if not self .grid .defer_load :
267
268
self .data = self ._reshape (self .data , transpose )
269
+ self ._loaded_time_indices = range (self .grid .tdim )
268
270
269
271
# Hack around the fact that NaN and ridiculously large values
270
272
# propagate in SciPy's interpolators
@@ -288,7 +290,6 @@ def __init__(
288
290
self ._dataFiles = np .append (self ._dataFiles , self ._dataFiles [0 ])
289
291
self ._field_fb_class = kwargs .pop ("FieldFileBuffer" , None )
290
292
self ._netcdf_engine = kwargs .pop ("netcdf_engine" , "netcdf4" )
291
- self ._loaded_time_indices : Iterable [int ] = [] # type: ignore
292
293
self ._creation_log = kwargs .pop ("creation_log" , "" )
293
294
self .chunksize = kwargs .pop ("chunksize" , None )
294
295
self .netcdf_chunkdims_name_map = kwargs .pop ("chunkdims_name_map" , None )
0 commit comments