Skip to content

v0.15.0

Compare
Choose a tag to compare
@jean-lucas jean-lucas released this 28 Dec 07:16
· 66 commits to master since this release
f7d1e3e

Changed

  • dataset.slices now returns a list of Slice objects 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)