-
foxes.core.Data.get_slice(s, dim_map=
{}
, name=None
, keep=True
)[source] Get a slice of data.
Parameters¶
- s: slice
The slice
- dim_map: dict
Mapping from original to new dimensions. If not found, same dimensions are assumed.
- name: str, optional
The name of the data object
- keep: bool
Keep non-matching fields as they are, else throw them out
Returns¶
- data: Data
The new data object, containing slices