The header states its physical envelope

#6
by rfick - opened
Substrate Commons org

The layout's header now states the physical envelope its certificate covers, in place of the scanner class it was read from. meta.replay_envelope.acquisition in disco/manifest.json 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. meta.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 pack is certified for does not change.

What changes

  • disco/manifest.json: meta.replay_envelope.acquisition (scanner and slew_max leave; bound becomes envelope; name and band_hz are added; G_max and B0_list keep their values) and the new meta.provenance.envelope_stamp. Nothing else in the file.
  • README.md: the certification table states the envelope in place of the scanner-class row.

What does not change

  • Every column file under disco/columns/, and disco/index.json: this PR does not touch them, and the manifest's column table (paths and byte layout) is identical.
  • The walk, the codec, the certificate (meta.fidelity) and every other header field.
  • Earlier revisions stay addressable; a reader pinned to b06eb41 reads exactly what it read before.

Verification (dmipy-replay 0.2.0 from PyPI)

  • A JSON diff of the published and the stamped manifest: only the paths above differ, and the column table is identical.
  • The layout opened twice with ReplayPack.open("hf://SubstrateCommons/disco-replay/disco") at b06eb41: once as published, once with the stamped manifest in place of the published one, every column range-read from the Hub. Fifteen of fifteen comparisons are bit-identical:
    • the envelope derived from each header;
    • bands_for_envelope for the prisma, connectom and connectome_2 presets (215, 115, and the same refusal for connectome_2, below);
    • the read plans;
    • image over three voxels, for PGSE across and along at b = 1000 and 3000 s/mm² and a 100 Hz cosine OGSE, bare and with T2, wall contact and the myelin field at 3 T;
    • view(...).replay of the same voxels (30,389 walkers) at every stored band and field mode, complex.

Note: the current catalogue's envelope_of("connectome_2") asks 1344 Hz (269 bands per 100 ms), more than the 1280 Hz this layout stores, and the reader refuses it for this layout before and after the stamp alike. The stamped name is the class the walk was certified for; its band_hz is the band stored.

🤖 Generated with Claude Code

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment