Commit c9c1da6
committed
fix: mass chart, GIF sync, descriptor card colors, SVG cleanup
ecosystem/result.py
mass_history was never written to to_summary_dict() -- only
species_mass_history was serialized. build_index read an empty list
and produced no SVG path, showing "total mass conserved across run"
even when mass dropped from 6789 to 303 au in a signal run.
Fixed: mass_history added to the measures dict in to_summary_dict().
scripts/build_index.py
Added backward-compat fallback: if mass_history is absent (older runs
without the fix), reconstruct it by summing species_mass_history rows.
viz/templates/ecosystem.html
GIF sync: on tab switch, both mass and signal GIFs now restart from
frame 0 via src-clear trick (img.src = ''; img.src = src) before the
opacity swap. Switching mass↔signal always shows the same simulation
moment on both sides.
viz/templates/index.html
receptor_sensitivity descriptor card changed from purple to teal to
match emission_activity and signal_retention -- all three are signal-only
descriptors and should share the same visual treatment.
docs/signal-field.svg
Full redraw: tighter font sizes (8-9.5px), proper label/mono/dim
hierarchy, all text fits within containers, cross-arrows labeled
concisely, footer note on conservation. No text overflow anywhere.1 parent 28824e1 commit c9c1da6
5 files changed
Lines changed: 146 additions & 112 deletions
File tree
- docs
- scripts
- src/biota
- ecosystem
- viz/templates
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
775 | 780 | | |
776 | 781 | | |
777 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments