Skip to content

Commit

Permalink
For restore, link to coreneuron_input from the save directory
Browse files Browse the repository at this point in the history
  • Loading branch information
WeinaJi committed Dec 2, 2024
1 parent 8b0444f commit 4ef3ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurodamus/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,8 @@ def _coreneuron_params(config: _SimConfig, run_conf):
if config.use_coreneuron and config.restore:
# Most likely we will need to reuse coreneuron_input from first part
if not os.path.isdir(coreneuron_datadir):
logging.info("RESTORE: Searching for coreneuron_input besides " + config.restore)
coreneuron_datadir = os.path.join(config.restore, "..", "coreneuron_input")
logging.info("RESTORE: link to coreneuron_input besides " + config.restore)
os.symlink(os.path.join(config.restore, "..", "coreneuron_input"), coreneuron_datadir)
assert os.path.isdir(coreneuron_datadir), "coreneuron_input dir not found"

config.coreneuron_datadir = coreneuron_datadir
Expand Down

0 comments on commit 4ef3ab1

Please sign in to comment.