From 8a285f4d0f02ba5e4b7fc23c75cd0b1148017c1f Mon Sep 17 00:00:00 2001 From: Sergio Date: Thu, 17 Aug 2023 17:22:31 +0200 Subject: [PATCH] Fix for IME syncing data back to GPFS --- neurodamus/node.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/neurodamus/node.py b/neurodamus/node.py index 4542cf6b..28ec24bf 100644 --- a/neurodamus/node.py +++ b/neurodamus/node.py @@ -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,