Skip to content

Commit

Permalink
remove get_jovision_profile
Browse files Browse the repository at this point in the history
since this is always automatically called by the system
  • Loading branch information
NiklasNeugebauer committed Jan 20, 2025
1 parent 3a91cc4 commit 6b7b876
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions rosys/vision/rtsp_camera/rtsp_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self,
self.ip: str | None = ip

self.substream = jovision_profile or substream
self._register_parameter('jovision_profile', self.get_jovision_profile, self.set_jovision_profile,
self._register_parameter('jovision_profile', self.get_substream, self.set_jovision_profile,
min_value=0, max_value=1, step=1, default_value=substream)
self._register_parameter('substream', self.get_substream, self.set_substream,
min_value=0, max_value=1, step=1, default_value=substream)
Expand Down Expand Up @@ -126,17 +126,9 @@ async def get_fps(self) -> int | None:

return await self.device.get_fps()

def get_jovision_profile(self) -> int | None:
assert self.device is not None
warnings.warn('get_jovision_profile is deprecated, use get_substream instead',
category=DeprecationWarning,
stacklevel=3)

return self.device.get_substream()

def set_jovision_profile(self, profile: int) -> None:
assert self.device is not None
warnings.warn('set_jovision_profile is deprecated, use set_substream instead',
warnings.warn('setting jovision_profile is deprecated, use "substream" instead',
category=DeprecationWarning,
stacklevel=3)

Expand Down

0 comments on commit 6b7b876

Please sign in to comment.