Skip to content

Commit becf9d7

Browse files
authored
Update data_client.py (#745)
1 parent 77e6c21 commit becf9d7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/viam/app/data_client.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ async def tabular_data_by_filter(
177177
178178
::
179179
180+
from viam.utils import create_filter
181+
180182
my_data = []
181183
my_filter = create_filter(component_name="motor-1")
182184
last = None
@@ -330,7 +332,7 @@ async def binary_data_by_filter(
330332
331333
while True:
332334
data, count, last = await data_client.binary_data_by_filter(
333-
my_filter, limit=1, last=last)
335+
my_filter, limit=1, last=last)
334336
if not data:
335337
break
336338
my_data.extend(data)
@@ -496,7 +498,7 @@ async def delete_binary_data_by_filter(self, filter: Optional[Filter]) -> int:
496498
497499
Args:
498500
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
500502
"organization_ids" when using this option.
501503
502504
Returns:
@@ -934,7 +936,7 @@ async def list_datasets_by_organization_id(self, organization_id: str) -> Sequen
934936
::
935937
936938
datasets = await data_client.list_datasets_by_organization_id(
937-
organization_id="YOUR-ORG-ID"
939+
organization_id="<YOUR-ORG-ID>"
938940
)
939941
print(datasets)
940942
@@ -966,7 +968,7 @@ async def rename_dataset(self, id: str, name: str) -> None:
966968
967969
Args:
968970
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**.
970972
name (str): The new name of the dataset.
971973
972974
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:
980982
::
981983
982984
await data_client.delete_dataset(
983-
id="abcd-1234xyz-8765z-123abc"
985+
id="<YOUR-DATASET-ID>"
984986
)
985987
986988
Args:
987989
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**.
989991
990992
For more information, see `Data Client API <https://docs.viam.com/appendix/apis/data-client/>`_.
991993
"""

0 commit comments

Comments
 (0)