File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
libs/labelbox/src/labelbox/schema Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -448,8 +448,12 @@ def read(self) -> Iterator[Tuple[_MetadataFileInfo, str]]:
448
448
with tempfile .NamedTemporaryFile (mode = 'w+' , delete = False ) as temp_file :
449
449
result = self ._retrieval_strategy .get_next_chunk ()
450
450
while result :
451
- file_info , raw_data = result
452
- temp_file .seek (file_info .offsets .start )
451
+ _ , raw_data = result
452
+ # there is something wrong with the way the offsets are being calculated
453
+ # so just write all of the chunks as is too the file, with pointer initially
454
+ # pointed to the start of the file (like what is in GCS) and do not
455
+ # rely on offsets for file location
456
+ # temp_file.seek(file_info.offsets.start)
453
457
temp_file .write (raw_data )
454
458
result = self ._retrieval_strategy .get_next_chunk ()
455
459
# read buffer
You can’t perform that action at this time.
0 commit comments