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:    ValueError
Message:      Illegal slicing argument for scalar dataspace
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, 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 129, 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 544, 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 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, 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 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, 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/hdf5/hdf5.py", line 83, in _generate_tables
                  pa_table = _recursive_load_arrays(h5, self.info.features, start, end)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 267, in _recursive_load_arrays
                  arr = _recursive_load_arrays(obj, features[path], start, end)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 269, in _recursive_load_arrays
                  arr = _load_array(obj, path, start, end)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 236, in _load_array
                  arr = dset[start:end]
                        ~~~~^^^^^^^^^^^
                File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
                File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
                File "/usr/local/lib/python3.14/site-packages/h5py/_hl/dataset.py", line 931, in __getitem__
                  selection = sel2.select_read(fspace, args)
                File "/usr/local/lib/python3.14/site-packages/h5py/_hl/selections2.py", line 101, in select_read
                  return ScalarReadSelection(fspace, args)
                File "/usr/local/lib/python3.14/site-packages/h5py/_hl/selections2.py", line 86, in __init__
                  raise ValueError("Illegal slicing argument for scalar dataspace")
              ValueError: Illegal slicing argument for scalar dataspace

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.

Cardiac Electrophysiology 2D

▶ Play with the physics in your browser: Ethgar/heart-waves · 🧠 Walrus fine-tuned on it: Ethgar/walrus-heart · 💻 Code: github.com/edgarmoreaualix/heart-waves

2,000 simulations of electrical waves in a 2D sheet of heart tissue, including normal paced beats, premature beats, and the spiral-wave re-entry that drives ventricular tachycardia and fibrillation, on healthy, fibrotic, and post-infarct (scarred) tissue. Every trajectory comes with three virtual ECG leads and an arrhythmia label.

Stored in The Well HDF5 format, so it plugs directly into physics foundation models such as polymathic-ai/walrus for fine-tuning.

Physics

Aliev–Panfilov monodomain model (Aliev & Panfilov, 1996), a standard phenomenological model of ventricular myocytes:

∂tu=∇⋅(σ∇u)−k u(u−a)(u−1)−uv,∂tv=(ε0+μ1vu+μ2)(−v−k u(u−a−1))\partial_t u = \nabla\cdot(\sigma\nabla u) - k\,u(u-a)(u-1) - u v,\qquad \partial_t v = \Big(\varepsilon_0 + \frac{\mu_1 v}{u+\mu_2}\Big)\big(-v - k\,u(u-a-1)\big)

  • u: transmembrane voltage, dimensionless (V ≈ 100·u − 80 mV); v: recovery variable
  • k = 8, ε0 = 0.002, μ1 = 0.2, μ2 = 0.3; excitability a ~ U(0.10, 0.16) per trajectory
  • 128 × 128 grid, Δx = 0.78 (100 × 100 dimensionless units), explicit Euler Δt = 0.05, no-flux walls
  • Conductance-weighted Laplacian: no current flows into scar (σ = 0)
  • Time unit ≈ 12.9 ms; 161 frames every 3 t.u. (≈ 39 ms), ≈ 6.2 s of heart time

Scenarios (sampled per trajectory)

Factor Distribution
Tissue healthy 40 % · diffuse fibrosis 35 % (5–35 % non-conducting, patch size 1–6 px) · infarct scar 25 % (elliptic core + patchy border zone)
Pacing site left / right / top / bottom edge, or a point source
Pacing 1–3 beats, period 60–110 t.u. (≈ 42–78 bpm)
Premature S2 80 % of runs: rectangle covering 9–36 % of tissue, 30–100 t.u. after the last beat (spans the vulnerable window)

Files

data/{train,valid,test}/cardiac_ep_XXXXX.hdf5   # The Well format, 1 trajectory per file (80/10/10 split)
  t0_fields/voltage       (1, 161, 128, 128) float32
  t0_fields/recovery      (1, 161, 128, 128) float32
  t0_fields/conductivity  (1, 128, 128)      float32   time-constant (0 = scar)
meta/trajectories.parquet  # all parameters, labels, 3 pseudo-ECG leads (every 0.5 t.u.)
meta/summary.json
stats.yaml                 # normalisation stats (train split)

Labels: sustained_reentry (activity persists ≥150 t.u. after the last stimulus), reentry_rate_bpm (dominant ECG frequency).

Limitations

2D isotropic sheet, phenomenological cell model, no fibre orientation, no torso. ECGs are far-field pseudo-ECGs over the tissue, not 12-lead body-surface ECGs. A research and teaching dataset — not for clinical use.

Generation

Fully reproducible with gen.py: uv run gen.py --n 2000 --seed 2026 (PyTorch, batched on one GPU, ~15 min on an A10G).

Downloads last month
210

Models trained or fine-tuned on edgarmoreau/cardiac-ep-2d

Space using edgarmoreau/cardiac-ep-2d 1