Skip to content

Commit

Permalink
Fixed lints
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed May 10, 2024
1 parent 2475aee commit 8e40334
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions crates/re_viewer/src/depthai/depthai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ impl State {
pub fn get_connected_cameras(&self) -> &Vec<CameraFeatures> {
&self.selected_device.cameras
}

pub fn get_connected_cameras_mut(&mut self) -> &mut Vec<CameraFeatures> {
&mut self.selected_device.cameras
}
Expand Down
6 changes: 3 additions & 3 deletions rerun_py/depthai_viewer/_backend/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
from typing import Dict, List, Optional, Tuple

import depthai as dai
import depthai_viewer as viewer
import numpy as np
from depthai_sdk import OakCamera
from depthai_sdk.classes.packet_handlers import ComponentOutput
from depthai_sdk.components import CameraComponent, NNComponent, StereoComponent
from depthai_sdk.components.tof_component import ToFComponent
from depthai_sdk.components.camera_helper import getClosestIspScale
from depthai_sdk.components.tof_component import Component, ToFComponent
from numpy.typing import NDArray

import depthai_viewer as viewer
from depthai_viewer._backend.device_configuration import (
ALL_NEURAL_NETWORKS,
CameraConfiguration,
Expand Down Expand Up @@ -45,7 +46,6 @@
)
from depthai_viewer._backend.store import Store
from depthai_viewer.install_requirements import model_dir
from numpy.typing import NDArray


class XlinkStatistics:
Expand Down
1 change: 1 addition & 0 deletions rerun_py/depthai_viewer/_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import Optional

import sentry_sdk

from depthai_viewer import version as depthai_viewer_version
from depthai_viewer._backend.config_api import Action, start_api
from depthai_viewer._backend.device import Device
Expand Down
7 changes: 4 additions & 3 deletions rerun_py/depthai_viewer/_backend/packet_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import cv2
import depthai as dai
import depthai_viewer as viewer
import numpy as np
from ahrs.filters import Mahony
from depthai_sdk.classes.packets import ( # PointcloudPacket,
Expand All @@ -23,11 +22,13 @@
StereoComponent,
)
from depthai_sdk.components.tof_component import ToFComponent
from numpy.typing import NDArray
from pydantic import BaseModel

import depthai_viewer as viewer
from depthai_viewer._backend.store import Store
from depthai_viewer._backend.topic import Topic
from depthai_viewer.components.rect2d import RectFormat
from numpy.typing import NDArray
from pydantic import BaseModel


class PacketHandlerContext(BaseModel): # type: ignore[misc]
Expand Down

0 comments on commit 8e40334

Please sign in to comment.