ooragan.Dataset.__getitem__#
- Dataset.__getitem__(index: int) File[source]#
- Dataset.__getitem__(index: slice) list[File]
Returns the File(s) with the given index (or indices).
- Parameters:
- indexint or slice
The index or indices (as a slice) of Files to get from this Dataset. If the start or stop of the slice are left empty, will return all Files with indices inside the given bounds. This means for returning all Files, use slice
[:].
- Returns:
- File or list of File
If a single index is specified, a single File is returned. A list otherwise.