Skip to content

Commit

Permalink
made slurm cluster logging dir simple
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 8, 2019
1 parent 24d17b1 commit bc0edf1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test_tube/hpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ def __init__(
python_cmd='python3',
enable_log_err=True,
enable_log_out=True,
test_tube_exp_name=None
):
self.hyperparam_optimizer = hyperparam_optimizer
self.log_path = log_path
if log_path is not None:
self.log_path = os.path.join(log_path, 'test_tube_data')

self.enable_log_err = enable_log_err
self.enable_log_out = enable_log_out
self.test_tube_exp_name = test_tube_exp_name
self.slurm_files_log_path = None
self.err_log_path = None
self.out_log_path = None
Expand Down Expand Up @@ -333,10 +329,7 @@ def __layout_logging_dir(self):
"""

# format the logging folder path
if self.test_tube_exp_name is not None:
slurm_out_path = os.path.join(self.log_path, self.test_tube_exp_name)
else:
slurm_out_path = os.path.join(self.log_path, self.job_name)
slurm_out_path = os.path.join(self.log_path, self.job_name)

self.log_path = slurm_out_path

Expand Down

0 comments on commit bc0edf1

Please sign in to comment.