FieldModelDataset¶
- class disco.readers.FieldModelDataset[source]¶
Bases:
objectThis is an abstract base class to provide delayed loading for simulation output.
- __getitem__(index)[source]¶
Return field model for current index of the simulation dataset.
- Parameters:
- index: timestamp index, >= 0, and less then len(self)
- Returns:
- instance of
disco.FieldModelwith one timestep
- instance of
- __len__()[source]¶
Return length of the dataset in number of indices.
- Returns:
- integer number of timesteps
Notes
See also: disco.DynamicFieldModelLoader
Methods Summary
Get time axis with length equal to len(self)
Methods Documentation