Dashboard — CLI Simulation Monitor¶
Text-based dashboard for monitoring spiking network simulations in the terminal. Displays per-neuron firing rates with trend indicators and bar charts. Designed for quick visual feedback during development — not a replacement for proper analysis tools.
SCDashboard¶
Maintains a rolling history (last 20 timesteps) of firing rates per neuron. On each update(), prints a formatted table with:
- Neuron index
- Current firing rate
- Trend indicator:
/ UP(rate increasing),\ DWN(decreasing),- STY(stable, ±0.01) - Bar chart (rate × 20 characters)
| Parameter | Meaning |
|---|---|
n_neurons |
Number of neurons to monitor |
Methods:
update(firing_rates, step)— Record rates and render dashboard- History is auto-truncated to 20 entries per neuron
Usage¶
from sc_neurocore.dashboard.text_dashboard import SCDashboard
import numpy as np
dash = SCDashboard(n_neurons=4)
for step in range(100):
rates = np.random.rand(4).tolist()
dash.update(rates, step=step)
Output:
--- SC DASHBOARD | Step 42 ---
Neuron | Rate | Trend (Last 5)
----------------------------------------
#0 | 0.731 | / UP ||||||||||||||
#1 | 0.245 | \ DWN |||||
#2 | 0.500 | - STY ||||||||||
#3 | 0.892 | / UP ||||||||||||||||||
----------------------------------------
sc_neurocore.dashboard.text_dashboard
¶
SCDashboard
¶
Simple CLI Dashboard for monitoring SC simulation.
Source code in src/sc_neurocore/dashboard/text_dashboard.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |