Skip to content
Snippets Groups Projects
Commit 9d8411c1 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

add more checks

parent 7b36e681
No related branches found
No related tags found
No related merge requests found
...@@ -342,11 +342,10 @@ class HPC(condor,slurm): ...@@ -342,11 +342,10 @@ class HPC(condor,slurm):
print("We can join") print("We can join")
try: try:
# touch joiningfile # touch joiningfile
if grid_options['HPC_force_join'] == 1: x = True if grid_options['HPC_force_join'] == 1 else False
pathlib.Path(joiningfile).touch(exist_ok=True) pathlib.Path(joiningfile).touch(exist_ok=x)
else:
pathlib.Path(joiningfile).touch(exist_ok=False)
try: try:
print("Calling HPC_join_from_files()")
self.HPC_join_from_files(self,joinfiles) self.HPC_join_from_files(self,joinfiles)
except Exception as e: except Exception as e:
print("Join gave exception",e) print("Join gave exception",e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment