Repository navigation
v0.4.0
v0.4.0
The network files now show exactly what each simulator draws, every option is written the same way, and connections can come from a file. This release changes the file format: update your networks once (see "Upgrading").
New
- Drawn values, one format for weights, delays and neuron values:
{value: 87.8}, or{distribution: normal, mean: 87.8, std: 8.78}, wheremeanandstdare those of the distribution, before any bound (forlognormaltoo). - Bounds on every drawn value:
lower_bound,upper_bound,bound_mode: redraw | clip. - Other distributions: NEST's own (
{distribution: exponential, beta: 2}), or your own, inextensions/nest/(a function) orextensions/brian2/(aDistribution).--extensionsworks with both simulators. - Connections from a file:
rule: from_filewith a CSV ofsource_index,target_index,weight,delay. - Final connections:
recording.final_connectionssaves each synapse's weight and delay at the end of a run, ready to run again. - Plots per area: a multi-area network gets
plots/<area>/by default;area: togethergives one set.
Breaking changes
Every removed form fails with a message that shows the new one.
| Before (v0.3) | Now (v0.4) |
|---|---|
{mean: 87.8, rel_std: 0.1, distribution: normal} |
{distribution: normal, mean: 87.8, std: 8.78} |
{mean: 0.1, rel_std: 0.0, distribution: fixed} |
{value: 0.1} |
bound_mode: redraw at the top of connectivity.yaml; delay minimum |
lower_bound / upper_bound / bound_mode on each weight and delay; a drawn delay needs lower_bound |
parameters: {pairwise_avg_num_conns: 2} (CSV: JSON column) |
pairwise_avg_num_conns: 2 (CSV: one column per argument) |
area: all / --area all |
leave area out (one set per area); area: together for one set |
--area V1 writes to plots/ |
writes to plots/V1/ |
These change meaning without an error:
- Lognormal neuron values:
mean/stdare now those of the values. Before, NEST took them as log-space numbers:tau_m: {distribution: lognormal, mean: 2.3, std: 0.1}meant about 10 ms and now means 2.3 ms. Writemean: 10.0, std: 1.0to keep the old values. - Brian2 draws neuron values with its own random numbers: same statistics, different spike times.
- A multi-area network without
areanow gets one set of plots per area, not one set with every population.
Also changed:
- A neuron-value distribution that isn't shared needs every argument it takes, and nothing it doesn't take.
- Brian2's
exponentialcomes fromextensions/brian2/. - Scaling refuses
from_fileconnections, and weights from a distribution that isn't shared whenK_scalingisn't 1. - Python API:
WeightDistribution,DelayDistributionandSHARED_DISTRIBUTIONSmoved tomicrocircuit_lab.config.distributions.
Fixed
- Scaling divided a weight's
meanbut not the arguments it is drawn with.
Upgrading
- Networks made by a builder: run
microcircuit-lab generate <name>again. - Hand-written files: reading them prints each change to make.
- Old runs: they still re-plot.
run.networkof an old run says which version made it.