Repository navigation
v0.4.1
v0.4.1
Two new network models, and NEST and Brian2 now agree on results that used to differ without a message. A few files need one more line: see "Breaking changes".
New network models
jiang24andjiang24_stp(Jiang et al. 2024, without and with short-term plasticity; NEST only), by @Pedro-RP:microcircuit-lab generate jiang24, and--stpfor the second.
New
metadata.jsonrecords the build time, the simulation time and the Python version.- A simulator's own connection rule takes
p,indegree,outdegreeorn_synapsesas its own argument, and arguments may be true or false:{rule: symmetric_pairwise_bernoulli, p: 0.1, make_symmetric: true}. - Builders write
rule:on every connection, so the files show it. The example networks were regenerated.
Fixed: results that differed between simulators
- Brian2, weights of both signs. A drawn weight with no bound at 0 sent every synapse of a connection by the sign of the mean weight. Each synapse now goes by its own sign, as in NEST (example: 44.6 Hz before, against 3.4 Hz in NEST).
- Brian2, Poisson stimulus. It gave at most one spike per time step, so strong stimuli were too weak (8 kHz: 4.3 Hz against 15.9 Hz in NEST). It now draws a Poisson number of spikes per step.
- Input delays. On Brian2 the background input now starts one
delayinto the run and a Poisson stimulus arrives at the same time step as in NEST. overwrite: trueemptied onlyrecordings/, so a second run into the same folder could return the first run's saved firing rates. It now empties everything the run writes again.- Saved firing rates and spectra (
cached_population_firing_rates,cached_power_spectrum) returned another area's or another time window's result. They are now kept per area and computed again when the settings change.
Fixed: problems found before the run, not during or after it
- Stimulus timings:
rate_timesmust increase and matchrate_values,stopmust come afterstart, and times must be multiples of the time step. - A delay that can round to 0 time steps is refused on NEST too.
- Brian2: a background input or stimulus through a synapse other than the static one, and saving the final connections of a gap junction.
- A NEST error while connecting names the connection it happened in.
Breaking changes
Each of these fails with a message that shows what to write.
| Before | Now |
|---|---|
a dc stimulus without delay (NEST used 1 ms, Brian2 none) |
delay: {value: 1.0} is required and applied on both |
file: ../shared/E_to_I.csv on a from_file connection |
the file must be inside the network folder |
| a stimulus time between two time steps (Brian2 rounded it) | refused on both simulators |
register_artifact(...) and the artifacts list in metadata.json |
removed; delete the call |
Brian2: a synapse model with its own on_pre and a drawn weight with no bound at 0 |
refused; give the weight lower_bound: 0 or upper_bound: 0 (or the synapse a receptor_port) |
These change results without an error:
- Brian2 spike times change on every network with a background input or a stimulus. Rates agree with before, except in the two cases fixed above, where they now match NEST.
- Full-scale
pd14on NEST with several threads gets other synapses for the same seed, with the same statistics: the builder now leaves out the 9 population pairs with no synapses.
Also fixed
- A saved connection with no synapses is left out of
final_connections/, and two saved connections can no longer share a file name. - Welch's power spectrum works with fewer than 8 bins.
- A network built in Python gets a clear message when it names a population that does not exist.
- Docs: what a left-out parameter and left-out
allow_autapses/allow_multapsesmean.
Upgrading
- Networks made by a builder: run
microcircuit-lab generate <name>again. - Hand-written files: add
delay: {value: 1.0}to eachdcstimulus; reading the file tells you where. - Old runs: they still re-plot.