Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow API configuration to preserve the axons during setup (#155)
## Context With BlueConfig one could ask a circuit to preserve the axons in full detail via a config entry `DetailedAxons`. However, that options was never made globally available via a flag, which enables it also for Sonata simulations. This PR covers that. ## Scope - Introduce the new Neurodamus top-level option `keep_axon` - Propagate to all Detailed neuron circuits which don't set the option explicitly. ## Testing in the testing environment under `test/ngv_wip` with the patched `emodels_atp_1p4` one must see **Script:** ```python nd = neurodamus.Neurodamus( "simulation_config.json", keep_axon=True, auto_init=False, cleanup_atexit=False, logging_level=2, ) nd.init() nd.run() ``` **Output:** ``` [VERB] -> Keeping axons ENABLED ... [INFO] Executing actions after stdinit... [INFO] Now deleting the axon! REPLACING AXON! [INFO] Now deleting the axon! REPLACING AXON! ``` ## Review * [x] PR description is complete * [x] Coding style (imports, function length, New functions, classes or files) are good * [ ] Unit/Scientific test added * [ ] Updated Readme, in-code, developer documentation Co-authored-by: Weina Ji <[email protected]>
- Loading branch information