Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def TagsByFilter(self, stream: Stream[TagsByFilterRequest, TagsByFilterRes
async def AddBoundingBoxToImageByID(self, stream: Stream[AddBoundingBoxToImageByIDRequest, AddBoundingBoxToImageByIDResponse]) -> None:
pass

async def UpdateBoundingBoxToImageByID(self, stream: Stream[UpdateBoundingBoxRequest, UpdateBoundingBoxResponse]) -> None:
async def UpdateBoundingBox(self, stream: Stream[UpdateBoundingBoxRequest, UpdateBoundingBoxResponse]) -> None:
pass

async def RemoveBoundingBoxFromImageByID(
Expand Down
4 changes: 2 additions & 2 deletions src/viam/app/data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
AddBinaryDataToDatasetByIDsRequest,
AddBoundingBoxToImageByIDRequest,
AddBoundingBoxToImageByIDResponse,
UpdateBoundingBoxRequest,
AddTagsToBinaryDataByFilterRequest,
AddTagsToBinaryDataByIDsRequest,
BinaryData,
Expand Down Expand Up @@ -67,7 +68,6 @@
TabularDataSourceType,
TagsByFilterRequest,
TagsByFilterResponse,
UpdateBoundingBoxRequest,
)
from viam.proto.app.datapipelines import (
CreateDataPipelineRequest,
Expand Down Expand Up @@ -1193,7 +1193,7 @@ async def add_bounding_box_to_image_by_id(
response: AddBoundingBoxToImageByIDResponse = await self._data_client.AddBoundingBoxToImageByID(request, metadata=self._metadata)
return response.bbox_id

async def update_bounding_box_to_image_by_id(
async def update_bounding_box(
self,
binary_id: str,
bbox_id: str,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,11 @@ async def test_add_bounding_box_to_image_by_id(self, service: MockData):
)
assert bbox_label == BBOX_LABEL

async def test_update_bounding_box_to_image_by_id(self, service: MockData):
async def test_update_bounding_box(self, service: MockData):
async with ChannelFor([service]) as channel:
client = DataClient(channel, DATA_SERVICE_METADATA)

await client.update_bounding_box_to_image_by_id(
await client.update_bounding_box(
binary_id=BINARY_DATA_ID,
label="label",
bbox_id=BBOX_LABEL,
Expand Down
Loading