We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac76e38 commit 62bce02Copy full SHA for 62bce02
libs/labelbox/src/labelbox/schema/internal/descriptor_file_creator.py
@@ -303,6 +303,13 @@ def convert_item(data_row_item):
303
304
def _chunk_down_by_bytes(self, items: List[dict],
305
max_chunk_size: int) -> Generator[str, None, None]:
306
+ """
307
+ Recursively chunks down a list of items into smaller lists until each list is less than or equal to max_chunk_size bytes
308
+ NOTE: of one data row is large than max_chunk_size, it will be returned as one chunk
309
+
310
+ Returns:
311
+ Generator[str, None, None]: A generator that yields a json string
312
313
if not items:
314
return
315
data = json.dumps(items)
0 commit comments