Skip to content

v0.4.0

Choose a tag to compare

@shimoura shimoura released this 05 Nov 14:48
· 82 commits to main since this release
0dfd198

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}, where mean and std are those of the distribution, before any bound (for lognormal too).
  • 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, in extensions/nest/ (a function) or extensions/brian2/ (a Distribution). --extensions works with both simulators.
  • Connections from a file: rule: from_file with a CSV of source_index,target_index,weight,delay.
  • Final connections: recording.final_connections saves 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: together gives 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/std are 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. Write mean: 10.0, std: 1.0 to keep the old values.
  • Brian2 draws neuron values with its own random numbers: same statistics, different spike times.
  • A multi-area network without area now 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 exponential comes from extensions/brian2/.
  • Scaling refuses from_file connections, and weights from a distribution that isn't shared when K_scaling isn't 1.
  • Python API: WeightDistribution, DelayDistribution and SHARED_DISTRIBUTIONS moved to microcircuit_lab.config.distributions.

Fixed

  • Scaling divided a weight's mean but 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.network of an old run says which version made it.