Repository navigation
Each example in examples/<name>/, and init --example - #56
Merged
Merged
Conversation
… copies only the core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each example now lives in its own folder, laid out like a project, so everything of one model is in one place and runs from there. Part of #45.
examples/<name>/fortoy,toy_two_areas,pd14,jiang24andhumam: builder, networks, simulation and analysis settings, plots, experiments and the Brian2 models it uses, with its README. Run it from its folder:cd examples/pd14 && microcircuit-lab run --network pd14_downscaled. No core change was needed for that; every builder writes the same files as before.init --example <name>copies an example into a project's folders (builders/pd14,configs/network/pd14, ...); it can be given several times. If the project has a different version of one of its items (e.g. its ownbuilders/pd14), the example is not copied andinitsays which item.initagain changes nothing and says nothing about what the project already has the same; a toy you changed is kept.init --with-corecopies only the core, no longer every example. Plaininitstill gives the folders and the toy.runandgeneratesay where to run from, or to make a project withinit.iaf_psc_exp.py) are copied into each example that uses them; a test checks the copies stay the same.examples/toy/(tests/conftest.py); the other examples viarun_from(...).Breaking:
init --with-coreno longer copies the examples; add them with--example <name>.