File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 0.15.6] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.15.6 ) - 2023-06-03
9
+
10
+ ### Changed
11
+ - Document new restrictions to slice create/append.
12
+ - ` Dataset.create_slice ` and ` Slice.append ` methods cannot exceed 10,000 items per request.
13
+
8
14
## [ 0.15.5] ( https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.15.5 ) - 2023-05-8
9
15
10
16
### Fixed
Original file line number Diff line number Diff line change @@ -887,10 +887,13 @@ def create_slice(
887
887
888
888
Parameters:
889
889
name: A human-readable name for the slice.
890
- reference_ids: List of reference IDs of dataset items to add to the slice::
890
+ reference_ids: List of reference IDs of dataset items to add to the slice, cannot exceed 10,000 items.
891
891
892
892
Returns:
893
893
:class:`Slice`: The newly constructed slice item.
894
+
895
+ Raises:
896
+ BadRequest: If length of reference_ids is too large (> 10,000 items)
894
897
"""
895
898
payload = {NAME_KEY : name , REFERENCE_IDS_KEY : reference_ids }
896
899
response = self ._client .make_request (
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ def append(
340
340
"""Appends existing DatasetItems from a Dataset to a Slice.
341
341
342
342
The endpoint expects a list of DatasetItem reference IDs which are set
343
- at upload time.
343
+ at upload time. The length of reference_ids cannot exceed 10,000 items per request.
344
344
345
345
Parameters:
346
346
reference_ids: List of user-defined reference IDs of dataset items or scenes
@@ -353,6 +353,9 @@ def append(
353
353
"slice_id": str,
354
354
"new_items": List[str]
355
355
}
356
+
357
+ Raises:
358
+ BadRequest: If length of reference_ids is too large (> 10,000 items)
356
359
"""
357
360
response = self ._client .append_to_slice (
358
361
slice_id = self .id ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ exclude = '''
21
21
22
22
[tool .poetry ]
23
23
name = " scale-nucleus"
24
- version = " 0.15.5 "
24
+ version = " 0.15.6 "
25
25
description = " The official Python client library for Nucleus, the Data Platform for AI"
26
26
license = " MIT"
27
27
authors = [" Scale AI Nucleus Team <nucleusapi@scaleapi.com>" ]
You can’t perform that action at this time.
0 commit comments