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

Fix job name

parent 9b1721f6
......@@ -4,9 +4,10 @@ from subprocess import call
class Job:
def __init__(self, model_dir, config_path):
self.dir = Path(model_dir).expanduser() / 'job'
model_dir = Path(model_dir)
self.dir = model_dir.expanduser() / 'job'
self.dir.mkdir(exist_ok=True, parents=True)
self.name = self.dir.name
self.name = model_dir.name
self.job_path = self.dir / f'{self.name}.qsub.sh'
self.gpu = True
self.requested_time = '23:59:59'
......
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