test: add V4 compat layer coverage for camera labels, radar, get_sequence_meta#96
Merged
janickm merged 1 commit intoNVIDIA:mainfrom May 7, 2026
Merged
Conversation
3ca7709 to
4c88354
Compare
bc5096a to
700c762
Compare
…nd get_sequence_meta Cover the three untested compat APIs in SequenceLoaderV4: - camera_labels_ids, get_camera_labels, query_camera_labels (full integration) - get_radar_sensor ray-bundle API exercise - get_sequence_meta basic verification Also adds -> None type annotations to all test methods so mypy checks them, and fixes pre-existing type issues (np.random.seed/rand -> default_rng, Runfiles.Rlocation nullability, sensor list type annotation).
700c762 to
4b43853
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SequenceLoaderV4:camera_labels_ids,get_camera_labels,query_camera_labels, and theCameraLabelswrapper class) — full write-then-read integration test parameterized over itar/directory store typesget_radar_sensor) — exercises basic properties and ray-bundle API (count, timestamps, valid mask, distances, directions)get_sequence_meta()— verifies it returns a non-empty dict without raisingDetails
The
TestCameraLabelsCompatIntegrationclass writes 3 label instances (depth@front, segmentation@front, depth@rear) using the component writers, loads throughSequenceLoaderV4, and verifies all protocol methods including query filtering bycamera_id,label_type, andlabel_category.All 28 test targets pass on both Python 3.8 and 3.11.