Headers state their physical envelope
Each pack's header now states the physical envelope its certificate covers, in place of the scanner class it was read from. replay_envelope.acquisition says bound = "envelope", name = "connectome_2", band_hz = 1280 (the stored band: 256 bands per 100 ms window), G_max = 0.5 T/m per axis and B0_list = [1.5, 3, 7] T. This is exactly the envelope the released reader (dmipy-replay 0.2.0) already derives from the scanner-class header by its rule scanner_class/1; the header now states it instead of leaving it to the rule. provenance.envelope_stamp records the rule and the four class fields it replaced (bound, scanner, G_max, slew_max). No certificate term depends on the slew, so what the packs are certified for does not change.
What changes
- All 600 packs under
packs/{plane,cylinder,sphere}/: the header'sreplay_envelope.acquisition(scannerandslew_maxleave;boundbecomesenvelope;nameandband_hzare added;G_maxandB0_listkeep their values) and the newprovenance.envelope_stamp. Each header grows by 160 bytes (152 for 68 packs), so the tensor data starts that much later in the file. manifest.json: the 600 rows'sha256andbytes, and the dataset summaryreplay_envelope.acquisition, stamped by the same rule. Nothing else.README.md: the certification table states the envelope in place of the scanner-class row.
What does not change
- Every tensor of every pack, byte for byte; each pack's tensor table (names, dtypes, shapes, offsets within the data) is identical.
- The walks, the codec, the certificates (
fidelity) and every other header field. - Earlier revisions stay addressable; a reader pinned to 58fd48f reads exactly what it read before.
Verification follows as a comment once every batch is in; the packs arrive in batches of about 2 GB.
🤖 Generated with Claude Code
Verification (dmipy-replay 0.2.0 from PyPI)
- Source: each of the 600 published files was read and its sha256 matched its row in the manifest at
58fd48fbefore it was stamped. - Bytes: in all 600 packs, the sha256 of every tensor's bytes and of the whole data region is equal in the published and the stamped file, and the tensor table is identical. The header differs only under
replay_envelope.acquisitionandprovenance.envelope_stamp. - Reader: both files read with
ReplayPack.loadgive the sameEnvelope, and every replay is bit-identical (complex signal): 4800 replays over the 600 packs (8 per pack). They cover:- PGSE across and along at b = 1000 and 3000 s/mm², and a 100 Hz cosine OGSE;
- bare diffusion, and the wall contact at half the pack's bound;
- each at the planned read and at every stored band.
- Upload: in this PR, every pack's LFS sha256 and size equal the stamped file's (600 of 600), and the PR holds the same file set as
58fd48f. - Manifest: each row's
sha256andbytesare those of the stamped file. The JSON diff against the published manifest is only those two fields and the summary acquisition. - Read-back: 6 packs (the smallest and the largest plane, cylinder and sphere) were fetched from this PR through the released reader's hub client, which checks each sha256 against this PR's manifest. All 6 replay bit-identically to the published files: PASS.
- Card: the certification table states the envelope in place of the scanner-class row. 0 Packs-table size cells move with the 160-byte headers.
🤖 Generated with Claude Code
A second commit set removes a source-file reference from one string of each pack's header, walk_params.block.accumulation (the producer's description of its accumulation method), in 600 packs.
- Each file keeps its size; the header is re-serialised and padded to its old length, so the data region starts where it did and its sha256 is unchanged in every pack.
- The header JSON differs from this PR's previous commit at that one path only, in every pack (600 checked).
- Every uploaded file's LFS sha256 and size were checked against the local file.
manifest.json: the 600 rows state the new sha256; theirbytesare unchanged.- Nothing a reader reads changes: the replay does not read this string.
- Read-back: 6 packs fetched from this PR through the released reader's hub client (each sha256 checked against this PR's manifest) replay bit-identically to the published files: PASS.
🤖 Generated with Claude Code