Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow API configuration to preserve the axons during setup #155

Merged
merged 6 commits into from
Jul 24, 2024
6 changes: 6 additions & 0 deletions neurodamus/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class CliOptions(ConfigT):
simulator = None
dry_run = False
num_target_ranks = None
keep_axon = False

# Restricted Functionality support, mostly for testing

Expand Down Expand Up @@ -579,7 +580,12 @@ def _extra_circuits(config: _SimConfig, run_conf):
if field in config.base_circuit and field not in circuit_info:
log_verbose(" > Inheriting '%s' from base circuit", field)
circuit_info[field] = config.base_circuit[field]

circuit_info.setdefault("nrnPath", False)
if config.cli_options.keep_axon and circuit_info["Engine"].__name__ == "METypeEngine":
log_verbose("Keeping axons ENABLED")
circuit_info.setdefault("DetailedAxon", True)

extra_circuits[name] = _make_circuit_config(circuit_info, req_morphology=False)
extra_circuits[name]._name = name

Expand Down
Loading