Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed Jun 9, 2024
1 parent d8c80dd commit d45fd93
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions rerun_py/depthai_viewer/_backend/device_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def to_runtime_controls(self) -> Dict[str, Any]:
"align": (
"RECTIFIED_LEFT"
if self.align == dai.CameraBoardSocket.LEFT
else "RECTIFIED_RIGHT" if self.align == dai.CameraBoardSocket.RIGHT else "CENTER"
else "RECTIFIED_RIGHT"
if self.align == dai.CameraBoardSocket.RIGHT
else "CENTER"
),
"lr_check": self.lr_check,
"lrc_check_threshold": self.lrc_threshold,
Expand Down Expand Up @@ -276,9 +278,9 @@ def to_dai(self) -> dai.RawToFConfig:
cfg.enableTemperatureCorrection = self.enable_temperature_correction # type: ignore[attr-defined, assignment]
cfg.enableWiggleCorrection = self.enable_wiggle_correction # type: ignore[attr-defined, assignment]
cfg.enablePhaseUnwrapping = self.enable_phase_unwrapping # type: ignore[attr-defined, assignment]
cfg.enablePhaseShuffleTemporalFilter = (
cfg.enablePhaseShuffleTemporalFilter = ( # type: ignore[attr-defined, assignment]
self.enable_phase_shuffle_temporal_filter
) # type: ignore[attr-defined, assignment]
)
cfg.enableBurstMode = self.enable_burst_mode # type: ignore[attr-defined, assignment]
return cfg

Expand Down Expand Up @@ -332,9 +334,9 @@ class DeviceProperties(BaseModel): # type: ignore[misc]
id: str
cameras: List[CameraFeatures] = []
imu: Optional[ImuKind]
stereo_pairs: List[Tuple[dai.CameraBoardSocket, dai.CameraBoardSocket]] = (
[]
) # Which cameras can be paired for stereo
stereo_pairs: List[
Tuple[dai.CameraBoardSocket, dai.CameraBoardSocket]
] = [] # Which cameras can be paired for stereo
default_stereo_pair: Optional[Tuple[dai.CameraBoardSocket, dai.CameraBoardSocket]] = None
info: DeviceInfo = DeviceInfo()

Expand Down

0 comments on commit d45fd93

Please sign in to comment.