Skip to content

v0.4.2

Choose a tag to compare

@shimoura shimoura released this 20 Nov 13:14
· 23 commits to main since this release
a61494c

Faster reading, building and writing of networks with many connection rows, and a few checks set right. NEST results are unchanged; Brian2 networks get other synapses for the same seed (same statistics).

Faster

  • Reading connectivity.yaml: a connection's weight and delay are checked against its rule once, for the whole table, instead of again for every row (a network of 7,600 rows: 1.5 → 1.0 s).
  • Reading from_file rows: the check for a file used by two connections counts the file names once (30,000 rows: 8.9 → 0.4 s).
  • NEST: each connection's weight and delay fields are worked out once, not for every row.
  • Writing YAML uses libyaml, as reading already did. Builders write the same files, faster.

Fixed

  • Brian2, many connections from one population. Rows with multapses (fixed_total_number, fixed_indegree, fixed_outdegree) crashed from about 190 rows leaving one population, and fewer rows took minutes to compile the first time. Their pairs are now drawn with numpy and connected in one call (150 rows: 82 → 15 s on the first run). Memory while connecting is slightly higher (about 8 bytes per synapse).
  • A dc stimulus's delay is checked in full again: delay: {mean: 1.0} or delay: {} was accepted and failed while building.
  • A from_file row that sets a weight field (e.g. weight: {mean: 5}) now gets the right advice: write only the weight's unit.

Who checks what

The core checks the file format, the values it computes with and what each shared name means; each simulator checks its own names. See "Who checks what" in CONTRIBUTING.md. So:

  • A simulator's own rule (e.g. symmetric_pairwise_bernoulli) gets its p, indegree, outdegree or n_synapses checked by the simulator, not by the core.

Breaking changes

Before Now
a draw without spread: std: 0 (normal, lognormal), min equal to max (uniform), lower_bound equal to upper_bound. NEST failed while building, Brian2 ran it refused; write the value as value: ...

These change results without an error:

  • Brian2 spikes change on every network: synapses are drawn another way, so the same seed gives other synapses, with the same statistics.
  • Error messages of a background input's weight start with The background input of <population>:, and errors in the connection table of connectivity.yaml start with connectivity.yaml:.

Upgrading

  • Networks made by a builder: nothing to change (they regenerate to the same files).
  • Hand-written files: only a draw without spread needs changing; reading the file tells you where.
  • Old runs: they still re-plot.