mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-23 03:46:37 +00:00
style(e2e): ruff auto-fix imports and remove unused imports in e2e suite
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,6 @@ from gps_denied.testing.datasets.base import (
|
||||
PlatformClass,
|
||||
)
|
||||
|
||||
|
||||
EARTH_R = 6_378_137.0
|
||||
FIXED_ORIGIN_LAT = 49.0
|
||||
FIXED_ORIGIN_LON = 32.0
|
||||
|
||||
@@ -31,7 +31,6 @@ from gps_denied.core.vo import SequentialVisualOdometry
|
||||
from gps_denied.schemas.graph import FactorGraphConfig
|
||||
from gps_denied.testing.datasets.base import DatasetAdapter, PlatformClass
|
||||
|
||||
|
||||
EARTH_R = 6_378_137.0
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[2]
|
||||
DATASETS_ROOT = REPO_ROOT / "datasets"
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ from gps_denied.testing.datasets.base import (
|
||||
DatasetCapabilities,
|
||||
DatasetFrame,
|
||||
DatasetIMU,
|
||||
DatasetPose,
|
||||
DatasetNotAvailableError,
|
||||
DatasetPose,
|
||||
PlatformClass,
|
||||
)
|
||||
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
import hashlib
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from gps_denied.testing.download import (
|
||||
DATASET_REGISTRY,
|
||||
DatasetSpec,
|
||||
verify_sha256,
|
||||
download_dataset,
|
||||
verify_sha256,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ from gps_denied.testing.datasets.euroc import EuRoCAdapter
|
||||
from gps_denied.testing.harness import E2EHarness
|
||||
from gps_denied.testing.metrics import absolute_trajectory_error
|
||||
|
||||
|
||||
# Initial target — calibrated once real numbers land.
|
||||
EUROC_MH01_RMSE_CEILING_M = 5.0
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ the harness runs to completion and produces one estimate per input frame.
|
||||
Correctness of VO on synthetic is out of scope — that's unit-test territory.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from gps_denied.testing.datasets.synthetic import SyntheticAdapter
|
||||
|
||||
@@ -7,7 +7,6 @@ import pytest
|
||||
from gps_denied.testing.datasets.mars_lvig import MARSLVIGAdapter
|
||||
from gps_denied.testing.harness import E2EHarness
|
||||
|
||||
|
||||
# Stress tier does not gate on RMSE — featureless sequences legitimately cause
|
||||
# tracking loss. The gate is whether the pipeline RUNS TO COMPLETION without
|
||||
# crashing, and what fraction of frames produced any estimate at all.
|
||||
|
||||
@@ -4,9 +4,9 @@ import numpy as np
|
||||
import pytest
|
||||
|
||||
from gps_denied.testing.metrics import (
|
||||
trajectory_rmse,
|
||||
absolute_trajectory_error,
|
||||
relative_pose_error,
|
||||
trajectory_rmse,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import numpy as np
|
||||
|
||||
from gps_denied.testing.datasets.synthetic import SyntheticAdapter
|
||||
from gps_denied.testing.datasets.base import PlatformClass
|
||||
from gps_denied.testing.datasets.synthetic import SyntheticAdapter
|
||||
|
||||
|
||||
def test_synthetic_has_raw_imu():
|
||||
|
||||
@@ -12,7 +12,6 @@ from gps_denied.testing.datasets.vpair import VPAIRAdapter
|
||||
from gps_denied.testing.harness import E2EHarness
|
||||
from gps_denied.testing.metrics import absolute_trajectory_error
|
||||
|
||||
|
||||
VPAIR_SAMPLE_RMSE_CEILING_M = 20.0 # initial target, calibrate after first runs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user