Skip to content

Commit

Permalink
Bumping version to v0.2.11 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 6, 2023
1 parent 59c9e01 commit a945025
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "viam-sdk"
version = "0.2.10"
version = "0.2.11"
description = "Viam Robotics Python SDK"
authors = [ "Naveed <[email protected]>" ]
license = "Apache-2.0"
Expand Down
6 changes: 5 additions & 1 deletion src/viam/components/arm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@


async def create_status(component: Arm) -> Status:
(end_position, joint_positions, is_moving,) = await asyncio.gather(
(
end_position,
joint_positions,
is_moving,
) = await asyncio.gather(
component.get_end_position(),
component.get_joint_positions(),
component.is_moving(),
Expand Down
1 change: 0 additions & 1 deletion src/viam/components/audio_input/audio_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class AudioInput(ComponentBase, MediaSource[Audio]):

SUBTYPE: Final = Subtype(RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "audio_input")

@dataclass
Expand Down
1 change: 0 additions & 1 deletion src/viam/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class ColorFormatter(logging.Formatter):

MAPPING = {
"DEBUG": 37, # white
"INFO": 36, # cyan
Expand Down
1 change: 0 additions & 1 deletion src/viam/media/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def stream(self) -> MediaStream[MediaType]:


class MediaStreamWithIterator(MediaStream[MediaType]):

_stream: AsyncIterator[MediaType]

def __init__(self, stream: AsyncIterator[MediaType]):
Expand Down
1 change: 0 additions & 1 deletion src/viam/media/viam_rgba_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def _save_rgba(img, fp, filename):


class RGBAImage(ImageFile):

format: str = RGBA_FORMAT_LABEL
format_description = "Viam's Raw RGBA Format"

Expand Down
1 change: 0 additions & 1 deletion src/viam/module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@


class Module:

_address: str
_parent_address: Optional[str] = None
_ready: bool
Expand Down
1 change: 0 additions & 1 deletion src/viam/module/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class ModuleService(ModuleServiceBase):

_module: "Module"

def __init__(self, module: "Module") -> None:
Expand Down
3 changes: 0 additions & 3 deletions src/viam/rpc/dial.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class Credentials:


class DialOptions:

disable_webrtc: bool
"""Bypass Web RTC and connect directly to the robot.
"""
Expand Down Expand Up @@ -131,7 +130,6 @@ def request(

@dataclass
class ViamChannel:

channel: Channel
release: Callable[[], None]
_closed: bool = False
Expand All @@ -153,7 +151,6 @@ async def __aexit__(self, exc_type, exc_value, traceback):


class _Runtime:

_lib: ctypes.CDLL
_ptr: ctypes.c_void_p

Expand Down
6 changes: 3 additions & 3 deletions src/viam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def primitive_to_value(v: ValueTypes) -> Value:
return Value(string_value=v)
if isinstance(v, Dict):
sv: Dict[str, Value] = {}
for (key, value) in v.items():
for key, value in v.items():
if not isinstance(key, str):
raise TypeError(f"Invalid UTF-8 in string: {key}")
sv[key] = primitive_to_value(value)
Expand Down Expand Up @@ -150,7 +150,7 @@ def struct_to_dict(struct: Struct) -> Dict[str, ValueTypes]:

def sensor_readings_native_to_value(readings: Mapping[str, Any]) -> Mapping[str, Any]:
prim_readings = dict(readings)
for (key, reading) in readings.items():
for key, reading in readings.items():
if isinstance(reading, Vector3):
prim_readings[key] = {"x": reading.x, "y": reading.y, "z": reading.z, "_type": "vector3"}
elif isinstance(reading, GeoPoint):
Expand All @@ -168,7 +168,7 @@ def sensor_readings_native_to_value(readings: Mapping[str, Any]) -> Mapping[str,

def sensor_readings_value_to_native(readings: Mapping[str, Value]) -> Mapping[str, Any]:
prim_readings = {key: value_to_primitive(value) for (key, value) in readings.items()}
for (key, reading) in prim_readings.items():
for key, reading in prim_readings.items():
if isinstance(reading, Mapping):
kind = reading.get("_type", "")
if kind == "angular_velocity":
Expand Down

0 comments on commit a945025

Please sign in to comment.