Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
t: string
kind: string
producer: string
resumed: bool
name: string
wanted: int64
elapsed_s: double
rss_bytes: int64
host_available_bytes: int64
cgroup_bytes: null
cgroup_max_bytes: null
devices: list<item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64> (... 1 chars omitted)
  child 0, item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64>
      child 0, device: string
      child 1, bytes_in_use: int64
      child 2, peak_bytes_in_use: int64
      child 3, bytes_limit: int64
where: list<item: string>
  child 0, item: string
n_walkers: int64
adaptive_steps: bool
diffusivity: double
geometry: string
T_max: double
dt_save: double
walker_batch_size: int64
phase: string
done: double
total: double
unit: string
rate_per_s: double
eta_s: double
path: string
bytes: int64
status: string
budget: null
t_pack_s: double
block: int64
scale: double
box: struct<i: list<item: int64>, j: list<item: int64>, k: list<item: int64>>
  child 0, i: list<item: int64>
      child 0, item: int64
  child 1, j: list<item: int64>
      child 0, item: int64
  child 2, k: list<item: int64>
      child 0, item: int64
sha256: string
seed: int64
rounds: int64
n_t: int64
size_bytes: int64
dt_save_s: double
finished: timestamp[s]
variant: string
pools: list<item: int64>
  child 0, item: int64
floor_max: double
run: struct<pack: struct<id: string, host: string, code: struct<version: string, commit: string>, record: (... 332 chars om
...
ng
  child 1, walk: struct<id: string, producer: string, status: string, started: string, wall_s: double, phases_s: stru (... 215 chars omitted)
      child 0, id: string
      child 1, producer: string
      child 2, status: string
      child 3, started: string
      child 4, wall_s: double
      child 5, phases_s: struct<seeding extra: double, seeding intra: double, walk extra: double, walk intra: double>
          child 0, seeding extra: double
          child 1, seeding intra: double
          child 2, walk extra: double
          child 3, walk intra: double
      child 6, peak_rss_bytes: int64
      child 7, peak_device_bytes: int64
      child 8, host: string
      child 9, record: string
      child 10, code: struct<version: string, commit: string>
          child 0, version: string
          child 1, commit: string
t_walk_s: double
host: string
commit: string
certified: string
walkers: int64
certificate: struct<extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>, intra: (... 80 chars omitted)
  child 0, extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
      child 0, voxels: int64
      child 1, walkers: int64
      child 2, floor_median: double
      child 3, floor_max: double
  child 1, intra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
      child 0, voxels: int64
      child 1, walkers: int64
      child 2, floor_median: double
      child 3, floor_max: double
to
{'block': Value('int64'), 'variant': Value('string'), 'host': Value('string'), 'devices': List(Value('string')), 'commit': Value('string'), 'certified': Value('string'), 'floor_max': Value('float64'), 'box': {'i': List(Value('int64')), 'j': List(Value('int64')), 'k': List(Value('int64'))}, 'seed': Value('int64'), 'budget': Value('null'), 'scale': Value('float64'), 'walkers': Value('int64'), 'pools': List(Value('int64')), 'n_t': Value('int64'), 'dt_save_s': Value('float64'), 't_walk_s': Value('float64'), 't_pack_s': Value('float64'), 'size_bytes': Value('int64'), 'sha256': Value('string'), 'certificate': {'extra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}, 'intra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}}, 'rounds': Value('int64'), 'run': {'pack': {'id': Value('string'), 'host': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}, 'record': Value('string')}, 'walk': {'id': Value('string'), 'producer': Value('string'), 'status': Value('string'), 'started': Value('string'), 'wall_s': Value('float64'), 'phases_s': {'seeding extra': Value('float64'), 'seeding intra': Value('float64'), 'walk extra': Value('float64'), 'walk intra': Value('float64')}, 'peak_rss_bytes': Value('int64'), 'peak_device_bytes': Value('int64'), 'host': Value('string'), 'record': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}}}, 'finished': Value('timestamp[s]')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              t: string
              kind: string
              producer: string
              resumed: bool
              name: string
              wanted: int64
              elapsed_s: double
              rss_bytes: int64
              host_available_bytes: int64
              cgroup_bytes: null
              cgroup_max_bytes: null
              devices: list<item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64> (... 1 chars omitted)
                child 0, item: struct<device: string, bytes_in_use: int64, peak_bytes_in_use: int64, bytes_limit: int64>
                    child 0, device: string
                    child 1, bytes_in_use: int64
                    child 2, peak_bytes_in_use: int64
                    child 3, bytes_limit: int64
              where: list<item: string>
                child 0, item: string
              n_walkers: int64
              adaptive_steps: bool
              diffusivity: double
              geometry: string
              T_max: double
              dt_save: double
              walker_batch_size: int64
              phase: string
              done: double
              total: double
              unit: string
              rate_per_s: double
              eta_s: double
              path: string
              bytes: int64
              status: string
              budget: null
              t_pack_s: double
              block: int64
              scale: double
              box: struct<i: list<item: int64>, j: list<item: int64>, k: list<item: int64>>
                child 0, i: list<item: int64>
                    child 0, item: int64
                child 1, j: list<item: int64>
                    child 0, item: int64
                child 2, k: list<item: int64>
                    child 0, item: int64
              sha256: string
              seed: int64
              rounds: int64
              n_t: int64
              size_bytes: int64
              dt_save_s: double
              finished: timestamp[s]
              variant: string
              pools: list<item: int64>
                child 0, item: int64
              floor_max: double
              run: struct<pack: struct<id: string, host: string, code: struct<version: string, commit: string>, record: (... 332 chars om
              ...
              ng
                child 1, walk: struct<id: string, producer: string, status: string, started: string, wall_s: double, phases_s: stru (... 215 chars omitted)
                    child 0, id: string
                    child 1, producer: string
                    child 2, status: string
                    child 3, started: string
                    child 4, wall_s: double
                    child 5, phases_s: struct<seeding extra: double, seeding intra: double, walk extra: double, walk intra: double>
                        child 0, seeding extra: double
                        child 1, seeding intra: double
                        child 2, walk extra: double
                        child 3, walk intra: double
                    child 6, peak_rss_bytes: int64
                    child 7, peak_device_bytes: int64
                    child 8, host: string
                    child 9, record: string
                    child 10, code: struct<version: string, commit: string>
                        child 0, version: string
                        child 1, commit: string
              t_walk_s: double
              host: string
              commit: string
              certified: string
              walkers: int64
              certificate: struct<extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>, intra: (... 80 chars omitted)
                child 0, extra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
                    child 0, voxels: int64
                    child 1, walkers: int64
                    child 2, floor_median: double
                    child 3, floor_max: double
                child 1, intra: struct<voxels: int64, walkers: int64, floor_median: double, floor_max: double>
                    child 0, voxels: int64
                    child 1, walkers: int64
                    child 2, floor_median: double
                    child 3, floor_max: double
              to
              {'block': Value('int64'), 'variant': Value('string'), 'host': Value('string'), 'devices': List(Value('string')), 'commit': Value('string'), 'certified': Value('string'), 'floor_max': Value('float64'), 'box': {'i': List(Value('int64')), 'j': List(Value('int64')), 'k': List(Value('int64'))}, 'seed': Value('int64'), 'budget': Value('null'), 'scale': Value('float64'), 'walkers': Value('int64'), 'pools': List(Value('int64')), 'n_t': Value('int64'), 'dt_save_s': Value('float64'), 't_walk_s': Value('float64'), 't_pack_s': Value('float64'), 'size_bytes': Value('int64'), 'sha256': Value('string'), 'certificate': {'extra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}, 'intra': {'voxels': Value('int64'), 'walkers': Value('int64'), 'floor_median': Value('float64'), 'floor_max': Value('float64')}}, 'rounds': Value('int64'), 'run': {'pack': {'id': Value('string'), 'host': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}, 'record': Value('string')}, 'walk': {'id': Value('string'), 'producer': Value('string'), 'status': Value('string'), 'started': Value('string'), 'wall_s': Value('float64'), 'phases_s': {'seeding extra': Value('float64'), 'seeding intra': Value('float64'), 'walk extra': Value('float64'), 'walk intra': Value('float64')}, 'peak_rss_bytes': Value('int64'), 'peak_device_bytes': Value('int64'), 'host': Value('string'), 'record': Value('string'), 'code': {'version': Value('string'), 'commit': Value('string')}}}, 'finished': Value('timestamp[s]')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

DiSCo as a replay phantom

The DiSCo substrate (Rafael-Patino, Girard, Truffet, Pizzolato, Caruyer, Thiran, The diffusion-simulated connectivity (DiSCo) dataset, Data in Brief 38 (2021) 107429, doi:10.1016/j.dib.2021.107429; data doi:10.17632/fgf86jdfg6.3, CC BY 4.0) walked once and stored as replay packs (.rpk, replay-pack-spec codec registry 0.6.0), so that any acquisition a human scanner can play is a replay of the same walk, voxel by voxel on the dataset's own 40³ grid of 25 µm voxels, with a per-voxel Monte-Carlo certificate.

DiSCo published one acquisition of this substrate (four shells, 90 directions each, TE 53.5 ms). This dataset is the substrate itself in replayable form: the same 12,196 strands, the same two tubes per strand (the listed inner diameter and the outer tube at 1/0.7 of it), the same diffusivity in both pools (0.6e-9 m²/s), intra water inside the inner tube and extra water outside the outer one, walked for 100 ms.

What a pack certifies

walk length 100 ms gradient-on budget; shorter echo times are prefixes (ReplayPack.prefix(TE))
band K = 256 modes over 100 ms, 1.28 kHz: every human scanner class (Prisma, Connectom, MAGNUS, Connectome 2.0) at ε = 5e-3 with margin ≥ 1.4; preclinical systems out of scope
save grid 3349 saves, set by the Connectome 2.0 envelope (500 mT/m) so the in-step path error stays below a tenth of the floor of the densest voxel
per-voxel floor 0.008 on the worst of DiSCo's four shells, the dataset's own precision (10⁹ particles over 64,000 voxels)
tiers C0 positions, C1 occupancy (static, impermeable), C2 wall contact, C3 the strand field along the path (K_path = 32, refocusing depth 16; the field read at every 4th save, 120 µs, which biases a 7 T spin-echo field signal by 3e-4 against the 8e-3 floor target)
field the strand field as the exact field of every segment (the dipole kernel integrated along the segment, the sheath a tube of susceptibility; within a strand's tube and one radius beyond, its nearest segment's whole cylinder carries the local terms): the segments within 18 µm of a walker in closed form, the rest through an exact far grid on 2.5 µm nodes (substrate/far_field_h2.5um.npy + .json, switch 11–18 µm; read error 0.98 % of the far part, 0.08 % of the field at walker positions, falling with the spacing); checked on the whole tract against an independent moment-conserving k-space route to 0.03–0.22 % (substrate/far_field_check.txt, dmipy-sim#265)
positions bridge_dst with integer band containers: exact float32 endpoints, bands at 16 bits below mode 16 and 8 bits above, nanometre reconstruction
outside voxels farther than 46 µm from every strand hold free extra water and carry no walkers: the analytic free-diffusion substrate applies

One walk, every tier. The intra and extra pools are walked with positions (C0), occupancy (C1), wall contact (C2) and the strand field sampled along their paths (C3); the sheath between the two tubes holds no water and is not seeded, but it is the susceptibility source (the myelin's chi is the sheath's, not its water's). DiSCo's own published simulation is the replay of these packs with the field off. Capability limits: no myelin water (a short-echo or multi-echo replay sees two pools where white matter has three), a refocusing depth of 8 for the field channel (K_path = 32), the band and envelope above.

Layout

manifest.json                 the recipe: substrate, grid, walk, codec, plan, variants, code commit
substrate/                    DiSCo's strand files, unchanged (SOURCE.md: provenance and hashes)
plan/plan_pilot5_8pv_100ms.npz  walkers per voxel per pool (the pilot's floors brought to the target)
plan/blocks.json              1399 contiguous voxel blocks of at most 1M walkers, one seed each
blocks/disco/block-NNNN.pK.rpk   pass K of block NNNN (manifest plan.passes: pass 1 is 0.16 of every block's counts, the
                                 0.02 floor; pass 2 the 0.84 top-up from its own seed stream): its walkers, its per-voxel
                                 certificate at its own count; block-NNNN.rpk without a pass tag is the whole block
blocks/disco/block-NNNN.pK.json  the shard's summary: host, pass, timings, sha256, floors per pool
blocks/disco/block-NNNN.pK.run/  the record of the walk that made it (manifest, event log with memory over time, summary)
claims/disco/                 blocks a worker is filling right now, each with a heartbeat (progress, ETA, memory)
STATUS.md                     the fill's state per contributor and the time to each pass's end (python -m dmipy_sim.fill.status, every 30 min)
certificate/disco.json        the fill's measured certificate (a scaled block, the full battery); every block inherits it
smoke/disco/                  scaled-down blocks from machines proving themselves
worker/                       disco_fill.py and how to run it on another GPU

A shard's embedded spec cites the strand file at substrate/DiSCo_Strands_Trajectories.tck (with its sha256) rather than carrying 12,196 centerlines: replay from the dataset's directory, or copy substrate/ under $DMIPY_SIM_SURFACE_DIR (default ~/.cache/dmipy-sim/surfaces).

A shard is a complete replay pack of its voxel block. dmipy_sim.replay.bank.merge_packs joins shards; a consumer who wants a region reads the blocks whose i, j, k ranges cover it (plan/blocks.json) and, within a shard, only the tensors it needs (safetensors range reads; the first band tensor of each axis is a K = 16 prefix).

Consuming

from dmipy_sim.replay import ReplayPack
from dmipy_sim import pgse
pk = ReplayPack.load("blocks/disco/block-0000.rpk")          # from the dataset's directory (the spec cites substrate/)
# a block filled in passes: its passes merge into the block at the plan's floor (the union's walker weights)
from dmipy_sim.replay.bank import merge_packs
pk = merge_packs(["blocks/disco/block-0012.p1.rpk", "blocks/disco/block-0012.p2.rpk"], id="disco/block-0012", overlap="recertify")
seq = pgse([[1, 0, 0], [0, 0, 1]], 0.015, 0.040, bvalues=[3e9, 3e9])   # SI: s/m^2, seconds; any grid, any TE <= 100 ms
S = pk.replay(seq)                       # the nominal replay: the embedded spec's T2 at TE = 100 ms
S_diffusion = pk.replay(seq, tissue=False)   # the bare diffusion signal

The acquisition is on its own grid: the replay projects the waveform's exact per-save weights onto the bridge basis, so nothing is resampled and the pack's save grid is not a consumer's concern (a PGSE on 257, 1000 or 3349 samples replays to the same signal to 1e-5, the waveform's own ramp discretisation).

Phantom.partition cuts a pack into voxels by seed position; every walker carries the volume it stands for (f_pool,v / n_pool,v), so a coarser or rotated grid is a weighted mean and its floor follows from the weights.

Contributing compute

See worker/README.md: one process fills blocks in a pipeline (the walk of the next block on the GPU while the last one packs on the CPU and uploads), claims by file, no scheduler. Every shard records the code commit, the host, the seed and the sha256 of what was uploaded, and carries the record of the run that made it; a claim's heartbeat says how far a block in progress is. A block round fits a 31 GB / 15 GB machine (a Kaggle session).

Attribution

Substrate: Rafael-Patino et al. 2021 (CC BY 4.0). Replay packs: dmipy-sim (dmrai-lab), replay-pack-spec. Cite the dataset paper for the substrate and the replay paper for the packs.

Downloads last month
7,304