Repository navigation
chore(cleanup): clean up the T4Dataset 1.0 stack - #318
Merged
Merged
Conversation
jacoblambert
force-pushed
the
v1/cleanup
branch
from
October 15, 2026 10:37
42023e0 to
caffafe
Compare
jacoblambert
force-pushed
the
v1/migrate
branch
from
October 15, 2026 10:37
c5dae0c to
9d9c504
Compare
jacoblambert
force-pushed
the
v1/cleanup
branch
from
October 21, 2026 01:31
636248f to
7887797
Compare
jacoblambert
force-pushed
the
v1/migrate
branch
from
October 21, 2026 01:31
9d9c504 to
0f658b2
Compare
ktro2828
self-requested a review
October 21, 2026 05:32
ktro2828
approved these changes
Oct 22, 2026
jacoblambert
force-pushed
the
v1/migrate
branch
from
October 22, 2026 09:57
0f658b2 to
98a9a47
Compare
…ests, drop redundant tests
jacoblambert
force-pushed
the
v1/cleanup
branch
from
October 22, 2026 09:58
7887797 to
f014293
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
This PR cleans up the 1.0 stack (#294 to #317) after a review pass over the whole diff. Behavior does not change.
The fixes are on top of the stack instead of in each PR, so the earlier PRs did not need another rebase. The table below says which PR each change belongs to. Each commit is one kind of change and can be reviewed alone.
Content fixes (spec text, real bugs) were already pushed to the PR that introduced them.
Commits
equidistant. A stale "to be removed" note. A repeated comment. A term that never changedhas_key_frame. A redundant skip inREC019.__all__inreference/files.py.file_sha256replaces 4 hash helpers (and reads in chunks).Instance.annotation_spansis used by the 0.x converter andREC013.Manifest.ASSET_DIRSis used by the writer andSTR013. The migrator reads the 0.x point layout fromsensor.lidar.fieldsinstead of working it out again.REC022,REC027,XYZI, the frame-number regex).matchinstead of== Nothingin sanity code.REC012/REC013helpers become methods.Args/Returnson the public 0.x converter methods.**dict spreadingdict(x, key=…)in tests,{…} | label(…)in the sample generator. The sample files are unchanged.t4sanity --version/t4viz --versioncreate their Rich console when called. Before, it was created at import, so in a terminal the captured output had colors andtest_versionfailed. CI was not affected.main(#293)Tests
The suite goes from 654 to 623 tests with the same coverage.
tests/helpers.py:SampleCopy, a writable copy of a sample dataset (read,edit,reports,write_labels). It replaces helpers copied between test files and about 15 inline copies.test_load_dataset, manifest included.test_invalid_recordwith named cases. Each case also checks that the unedited record builds.test_v1_sample_passesnow runs with--checksum, so it covers the manifest hashes too.test_generator_reproduces_samplechecks thatmake_sample_v1.pystill writes the committed sample (tables, LiDAR, map). Video and manifest bytes are left out: they depend on the encoder build and the t4-devkit version.Checked
make_sample_v1.pywrites byte-identical files.t4migrateon all 16 local datasets (before this cleanup): 0 sanity failures.