v0.15.0
Changed
dataset.slicesnow returns a list ofSliceobjects instead of a list of IDs
Added
dataset.get_slices(name: str, slice_type: SliceType): List[Slice]
- Retrieve a slice from a dataset by its name, or
- Retrive all slices of a particular type from. Where type is one of
["dataset_item", "object", "scene"].
from nucleus.slice import SliceType
dataset.get_slices(name="My Slice") # if slice exists, this will return an array with a single item.
dataset.get_slices(slice_type=SliceType.DATASET_ITEM)