Skip to content

Commit

Permalink
remove jovision setter and getter deprecation warnings (#252)
Browse files Browse the repository at this point in the history
* remove the jovision parameter and related functions

* add back functions (without deprecation warning)

* remove unused import
  • Loading branch information
NiklasNeugebauer authored Jan 23, 2025
1 parent d6f6a1c commit e2d3281
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rosys/vision/rtsp_camera/rtsp_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing_extensions import Self

from ... import rosys
from ...helpers.deprecation import deprecated_function, deprecated_param
from ...helpers.deprecation import deprecated_param
from ..camera.configurable_camera import ConfigurableCamera
from ..camera.transformable_camera import TransformableCamera
from ..image import Image
Expand Down Expand Up @@ -124,15 +124,13 @@ async def get_fps(self) -> int | None:

return await self.device.get_fps()

@deprecated_function(remove_in_version='0.27.0', stacklevel=3)
def get_jovision_profile(self) -> int | None:
assert self.device is not None
profile = self.get_substream()
if profile is not None:
self._parameters['substream'].value = profile
return profile

@deprecated_function(remove_in_version='0.27.0', stacklevel=3)
def set_jovision_profile(self, profile: int) -> None:
assert self.device is not None
self._parameters['substream'].value = profile
Expand Down

0 comments on commit e2d3281

Please sign in to comment.