rfick commited on
Commit
2f76669
·
verified ·
1 Parent(s): b06eb41

The header states its physical envelope

Browse files

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](https://claude.com/claude-code)

Files changed (2) hide show
  1. README.md +3 -3
  2. disco/manifest.json +0 -0
README.md CHANGED
@@ -33,12 +33,12 @@ It is smaller and faster, but answers only those timings.
33
 
34
  ## What the pack is certified for
35
 
36
- This pack is certified for **any acquisition in the class below**, not for a list of protocols.
37
 
38
  | | |
39
  |---|---|
40
- | Scanner class | Connectome 2.0: G_max 0.5 T/m, slew 600 T/m/s |
41
- | Waveforms | any within the class: PGSE, OGSE, stimulated echo, arbitrary; up to 16 refocusing pulses; TE ≤ 100 ms |
42
  | Relaxation | T₂ and T₁ per pool, surface relaxivity ρ₂ ≤ 3 µm/s |
43
  | Field | B₀ of 1.5, 3 or 7 T in any direction, myelin χ up to 2 × 10⁻⁷ (isotropic and anisotropic) |
44
  | Floor | 1.003 %: the per-voxel standard error that the walker count was planned for |
 
33
 
34
  ## What the pack is certified for
35
 
36
+ This pack is certified for **any acquisition inside the envelope below**, not for a list of protocols.
37
 
38
  | | |
39
  |---|---|
40
+ | Envelope | `connectome_2`: band 1280 Hz (256 bands per 100 ms window), G_max 0.5 T/m per axis, B₀ list 1.5, 3, 7 T (`replay_envelope.acquisition` in the header) |
41
+ | Waveforms | any within the envelope: PGSE, OGSE, stimulated echo, arbitrary; up to 16 refocusing pulses; TE ≤ 100 ms |
42
  | Relaxation | T₂ and T₁ per pool, surface relaxivity ρ₂ ≤ 3 µm/s |
43
  | Field | B₀ of 1.5, 3 or 7 T in any direction, myelin χ up to 2 × 10⁻⁷ (isotropic and anisotropic) |
44
  | Floor | 1.003 %: the per-voxel standard error that the walker count was planned for |
disco/manifest.json CHANGED
The diff for this file is too large to render. See raw diff