File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ # Next Release:
4
+ * Added ` dataset.export_data_rows() ` which returns all ` DataRows ` for a ` Dataset ` .
5
+
3
6
# Version 2.6.0 (2021-06-11)
4
7
## Fix
5
8
* Upated ` create_mask_ndjson ` helper function in ` image_mal.ipynb ` to use the color arg
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ def data_row_for_external_id(self, external_id):
233
233
return data_rows [0 ]
234
234
235
235
def export_data_rows (self , timeout_seconds = 120 ):
236
- """ Returns a generator that produces all data rows that are currently attached to this datarow .
236
+ """ Returns a generator that produces all data rows that are currently attached to this dataset .
237
237
238
238
Args:
239
239
timeout_seconds (float): Max waiting time, in seconds.
@@ -243,7 +243,7 @@ def export_data_rows(self, timeout_seconds=120):
243
243
LabelboxError: if the export fails or is unable to download within the specified time.
244
244
"""
245
245
id_param = "datasetId"
246
- query_str = """mutation GetQueuedDataRowsExportUrlPyApi ($%s: ID!)
246
+ query_str = """mutation GetDatasetDataRowsExportUrlPyApi ($%s: ID!)
247
247
{exportDatasetDataRows(data:{datasetId: $%s }) {downloadUrl createdAt status}}
248
248
""" % (id_param , id_param )
249
249
sleep_time = 2
You can’t perform that action at this time.
0 commit comments