Repository navigation
v0.5.0
Each example now lives in its own folder, laid out like a project, so everything of one model is in one place. Nothing changes in the network files or in the results.
Examples in examples/<name>/
toy,toy_two_areas,pd14,jiang24andhumameach have one folder with their builder, networks, simulation and analysis settings, plots, experiment scripts, the Brian2 models they use, and their README.- Run an example from its folder, as any project:
cd examples/pd14 && microcircuit-lab run --network pd14_downscaled.
init
init <project> --example <name>copies an example into the project's folders (builders/pd14,configs/network/pd14, ...). It can be given several times:--example pd14 --example jiang24.- If the project has a different version of one of the example's items (e.g. its own
builders/pd14), the example is not copied andinitsays which item. What the project already has the same is passed over without a message, and a toy you changed is kept. - Without git or a connection,
initstill makes the folders and says why nothing was copied.
Smaller changes
- Outside a project,
runandgeneratesay where to run from, or to make a project withinit. - Links to the examples in the README and the config docs point to GitHub, so they also work in a project's copy of the core.
Breaking changes
| Before | Now |
|---|---|
init --with-core copied every example into the project |
it copies only the core; add examples with --example <name> |
the examples at the repository root (builders/, configs/, analyses/, experiments/, extensions/) |
in examples/<name>/; microcircuit-lab run at the repository root finds nothing |
Upgrading
- Projects: nothing to change; your files stay where they are. To add an example:
microcircuit-lab init . --example <name>. - Clones of this repository: run the examples from
examples/<name>/. - Old runs: they still re-plot.