File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ def create_slice(
241241
242242 :return: new Slice object
243243 """
244- if dataset_item_ids and reference_ids :
244+ if bool ( dataset_item_ids ) == bool ( reference_ids ) :
245245 raise Exception (
246- "You cannot specify both dataset_item_ids and reference_ids"
246+ "You must specify exactly one of dataset_item_ids or reference_ids. "
247247 )
248248 payload : Dict [str , Any ] = {NAME_KEY : name }
249249 if dataset_item_ids :
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def serialize_and_write(
7777):
7878 for unit in upload_unit :
7979 try :
80- file_pointer .write (unit .to_json ())
80+ file_pointer .write (unit .to_json () + " \n " )
8181 except TypeError as e :
8282 type_name = type (unit ).__name__
8383 message = (
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ exclude = '''
2121
2222[tool .poetry ]
2323name = " scale-nucleus"
24- version = " 0.1.2 "
24+ version = " 0.1.3 "
2525description = " The official Python client library for Nucleus, the Data Platform for AI"
2626license = " MIT"
2727authors = [" Scale AI Nucleus Team <nucleusapi@scaleapi.com>" ]
@@ -32,7 +32,7 @@ documentation = "https://dashboard.scale.com/nucleus/docs/api"
3232packages = [{include =" nucleus" }]
3333
3434[tool .poetry .dependencies ]
35- python = " ^3.6.1 "
35+ python = " ^3.6.2 "
3636grequests = " ^0.6.0"
3737requests = " ^2.25.1"
3838tqdm = " ^4.60.0"
You can’t perform that action at this time.
0 commit comments