Skip to content

Commit 2515b2e

Browse files
committed
rename get_slice to get_catalog_slice
1 parent 6c6be9c commit 2515b2e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

labelbox/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,9 +1213,9 @@ def _format_failed_rows(rows: List[str],
12131213
)
12141214
time.sleep(sleep_time)
12151215

1216-
def get_slice(self, slice_id) -> CatalogSlice:
1216+
def get_catalog_slice(self, slice_id) -> CatalogSlice:
12171217
"""
1218-
Fetches a Slice by ID.
1218+
Fetches a Catalog Slice by ID.
12191219
12201220
Args:
12211221
slice_id (str): The ID of the Slice

labelbox/schema/slice.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Slice(DbObject):
88
"""
9-
A Slice is a saved set of filters (saved query) used to find data rows matching a certain criteria
9+
A Slice is a saved set of filters (saved query)
1010
1111
Attributes:
1212
name (datetime)
@@ -23,6 +23,9 @@ class Slice(DbObject):
2323

2424

2525
class CatalogSlice(Slice):
26+
"""
27+
Represents a Slice used for filtering data rows in Catalog.
28+
"""
2629

2730
def get_data_row_ids(self) -> List[str]:
2831
"""

0 commit comments

Comments
 (0)