fix: distinguish admitted RELLIS previews from smoke
This commit is contained in:
@@ -10,9 +10,9 @@ from fastapi import APIRouter
|
||||
from fastapi.routing import APIRoute
|
||||
|
||||
from k1link.datasets import (
|
||||
RELLIS_SOURCE_ID,
|
||||
DatasetAdmissionError,
|
||||
DatasetFrameError,
|
||||
RELLIS_SOURCE_ID,
|
||||
dataset_gateway_catalog,
|
||||
goose_admission,
|
||||
goose_benchmark,
|
||||
@@ -355,6 +355,37 @@ def test_rellis_smoke_preview_keeps_semantickitti_alignment_and_ignore_policy(
|
||||
rellis = catalog["sources"][1] # type: ignore[index]
|
||||
assert rellis["admission"]["status"] == "smoke-ready" # type: ignore[index]
|
||||
|
||||
admission_path = tmp_path / "rellis-admission.json"
|
||||
admission_path.write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"schema_version": "missioncore.rellis-admission/v1",
|
||||
"source_id": "rellis-3d/v1.1",
|
||||
"status": "dataset-ready",
|
||||
"storage": {
|
||||
"policy": "worker-d-only",
|
||||
"admitted": True,
|
||||
"path_exposed": False,
|
||||
},
|
||||
"alignment": {
|
||||
"annotated_scan_count": 13_556,
|
||||
"point_label_alignment": "complete",
|
||||
"pose_index_coverage": "complete",
|
||||
},
|
||||
"release": {"identity_sha256": "a" * 64},
|
||||
}
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
admitted = dataset_gateway_catalog(
|
||||
Path("/mnt/d/NDC_MISSIONCORE/datasets"),
|
||||
rellis_preview_path=preview_path,
|
||||
rellis_admission_path=admission_path,
|
||||
)
|
||||
admitted_rellis = admitted["sources"][1] # type: ignore[index]
|
||||
assert admitted_rellis["admission"]["status"] == "dataset-ready" # type: ignore[index]
|
||||
assert admitted["next_action"] == "qualify-rellis-current-vs-patchworkpp"
|
||||
|
||||
|
||||
def test_goose_current_ground_is_scored_against_independent_labels(
|
||||
tmp_path: Path,
|
||||
|
||||
Reference in New Issue
Block a user