Skip to content

Commit

Permalink
Fix for IME syncing data back to GPFS
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiorg-hpc committed Aug 17, 2023
1 parent 49b87a1 commit 8a285f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions neurodamus/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1373,9 +1373,13 @@ def _sim_corenrn_write_config(self, corenrn_restore=False):
# f has the whole path. I need only the filename
for f in allfiles:
if not os.path.islink(f):
filename = os.path.basename(f)
filename = node_specific_corenrn_output_in_storage / os.path.basename(f)
shutil.move(f, node_specific_corenrn_output_in_storage)
os.symlink(node_specific_corenrn_output_in_storage / filename, f)
os.symlink(filename, f)

# Temp. commit: If we are on IME, ensure that the data does not transfer back to GPFS
if node_specific_corenrn_output_in_storage.is_relative_to("/ime"):
subprocess.call(['/opt/ddn/ime/bin/ime-ctl', '--pin', filename])

SimConfig.coreneuron.write_sim_config(
corenrn_output,
Expand Down

0 comments on commit 8a285f4

Please sign in to comment.