Commit d5807460 authored by Fernando Perez-Garcia's avatar Fernando Perez-Garcia

Fix job attribute

parent 35f6e53e
......@@ -51,7 +51,7 @@ for application in applications:
job = Job(model_dir, model.config_path)
job.application = application_name
print(f'Creating {job.path}...')
print(f'Creating {job.job_path}...')
job.write()
if len(sys.argv) > 1 and sys.argv[1] == '--submit':
......
......@@ -8,7 +8,7 @@ class Job:
self.dir = model_dir.expanduser() / 'job'
self.dir.mkdir(exist_ok=True, parents=True)
self.name = model_dir.name
self.job_path = self.dir / f'{self.name}.qsub.sh'
self.path = self.dir / f'{self.name}.qsub.sh'
self.gpu = True
self.requested_time = '23:59:59'
self.tmem = '11.5G'
......@@ -89,9 +89,9 @@ class Job:
a('')
text = '\n'.join(lines)
self.job_path.write_text(text)
self.path.write_text(text)
def submit(self):
command = ['qsub', str(self.job_path)]
command = ['qsub', str(self.path)]
call(command)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment