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

add joinlist option

parent 52cd3f5c
No related branches found
No related tags found
No related merge requests found
......@@ -21,13 +21,19 @@ class HPC(condor,slurm):
# don't do anything: we just inherit from this class
return
def HPC_joinfiles(self):
def HPC_joinfiles(self,joinlist=None):
"""
Function to load in the joinlist to a list and return it.
"""
f = open(self.grid_options['joinlist'],'r',encoding='utf-8')
list = f.read().splitlines()
f.close()
if joinlist is None:
joinlist = self.grid_options['joinlist']
f = open(joinlist,'r',encoding='utf-8')
if f:
list = f.read().splitlines()
f.close()
else:
print("Failed to open joinlist at {list}".format(list=joinlist))
self.exit(code=1)
return list
def HPC_join_from_files(self,newobj,joinfiles):
......
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