added ruff test
This commit is contained in:
@@ -9,16 +9,13 @@ the grid does not match, with a diagnostic that says which shapes were seen.
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from orisys_app_shared.scene3d import synthetic
|
||||
from orisys_app_shared.scene3d.contracts import (
|
||||
ExpectedGeometry,
|
||||
FrameIdentity,
|
||||
ThreeDError,
|
||||
validate_surface_frame,
|
||||
)
|
||||
from orisys_studio.scene3d.adapters import (
|
||||
@@ -40,16 +37,16 @@ class FakePacket:
|
||||
behaviour under test.
|
||||
"""
|
||||
|
||||
flow: Optional[np.ndarray] = None
|
||||
depth: Optional[np.ndarray] = None
|
||||
valid_mask: Optional[np.ndarray] = None
|
||||
flow: np.ndarray | None = None
|
||||
depth: np.ndarray | None = None
|
||||
valid_mask: np.ndarray | None = None
|
||||
frame_id: int = 1
|
||||
invalid_reason: str = ""
|
||||
flow_valid: Optional[bool] = True
|
||||
flow_frame_id: Optional[int] = None
|
||||
depth_valid: Optional[bool] = True
|
||||
depth_frame_id: Optional[int] = None
|
||||
forces_valid: Optional[bool] = True
|
||||
flow_valid: bool | None = True
|
||||
flow_frame_id: int | None = None
|
||||
depth_valid: bool | None = True
|
||||
depth_frame_id: int | None = None
|
||||
forces_valid: bool | None = True
|
||||
|
||||
|
||||
def _identity(generation: int = 1) -> FrameIdentity:
|
||||
|
||||
Reference in New Issue
Block a user