@@ -177,6 +177,8 @@ async def tabular_data_by_filter(
177
177
178
178
::
179
179
180
+ from viam.utils import create_filter
181
+
180
182
my_data = []
181
183
my_filter = create_filter(component_name="motor-1")
182
184
last = None
@@ -330,7 +332,7 @@ async def binary_data_by_filter(
330
332
331
333
while True:
332
334
data, count, last = await data_client.binary_data_by_filter(
333
- my_filter, limit=1, last=last)
335
+ my_filter, limit=1, last=last)
334
336
if not data:
335
337
break
336
338
my_data.extend(data)
@@ -496,7 +498,7 @@ async def delete_binary_data_by_filter(self, filter: Optional[Filter]) -> int:
496
498
497
499
Args:
498
500
filter (viam.proto.app.data.Filter): Optional `Filter` specifying binary data to delete. Passing an empty `Filter` will lead to
499
- all data being deleted. Exercise caution when using this option. You must specify any organization ID with
501
+ all data being deleted. Exercise caution when using this option. You must specify an organization ID with
500
502
"organization_ids" when using this option.
501
503
502
504
Returns:
@@ -934,7 +936,7 @@ async def list_datasets_by_organization_id(self, organization_id: str) -> Sequen
934
936
::
935
937
936
938
datasets = await data_client.list_datasets_by_organization_id(
937
- organization_id="YOUR-ORG-ID"
939
+ organization_id="< YOUR-ORG-ID> "
938
940
)
939
941
print(datasets)
940
942
@@ -966,7 +968,7 @@ async def rename_dataset(self, id: str, name: str) -> None:
966
968
967
969
Args:
968
970
id (str): The ID of the dataset. You can retrieve this by navigating to the **DATASETS** sub-tab of the **DATA** tab,
969
- clicking on the dataset, clicking the **...** menu and selecting **Copy dataset ID**.
971
+ clicking on the dataset, clicking the **...** menu and selecting **Copy dataset ID**.
970
972
name (str): The new name of the dataset.
971
973
972
974
For more information, see `Data Client API <https://docs.viam.com/appendix/apis/data-client/>`_.
@@ -980,12 +982,12 @@ async def delete_dataset(self, id: str) -> None:
980
982
::
981
983
982
984
await data_client.delete_dataset(
983
- id="abcd-1234xyz-8765z-123abc "
985
+ id="<YOUR-DATASET-ID> "
984
986
)
985
987
986
988
Args:
987
989
id (str): The ID of the dataset. You can retrieve this by navigating to the **DATASETS** sub-tab of the **DATA** tab,
988
- clicking on the dataset, clicking the **...** menu and selecting **Copy dataset ID**.
990
+ clicking on the dataset, clicking the **...** menu and selecting **Copy dataset ID**.
989
991
990
992
For more information, see `Data Client API <https://docs.viam.com/appendix/apis/data-client/>`_.
991
993
"""
0 commit comments