Skip to content

Commit 2dea247

Browse files
committed
Just copy position files out
1 parent 9468e9c commit 2dea247

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

master_openworm.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,16 @@ def execute_with_realtime_output(command, directory, env=None):
237237
print("Moving %s to %s" % (report, new_sim_out))
238238
shutil.move(report, new_sim_out)
239239

240+
# Copy position files etc.
241+
txt_files = glob.glob("%s/*.txt" % latest_subdir)
242+
for txt_file in txt_files:
243+
print("Moving %s to %s" % (txt_file, new_sim_out))
244+
shutil.move(txt_file, new_sim_out)
245+
dat_files = glob.glob("%s/*.dat" % latest_subdir)
246+
for dat_file in dat_files:
247+
print("Moving %s to %s" % (dat_file, new_sim_out))
248+
shutil.move(dat_file, new_sim_out)
249+
240250
# Copy WCON file(s)
241251
wcons = glob.glob("%s/*.wcon" % latest_subdir)
242252
for wcon in wcons:

0 commit comments

Comments
 (0)