Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisChen1992 committed Feb 1, 2019
1 parent f8b76fd commit a02a8c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tool/create_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@

for job_id in range(config_count):
config_file = config_list[job_id]
logdir_path_config = os.path.join(logdir_path, version, config_file.rstrip('.json'))
with open('job_%d.sh' %job_id, 'w') as file:
cmd = 'mkdir -p ' + logdir_path_config
file.write(cmd+'\n')
for nFactor in nFactor_list:
values = [os.path.join(config_path, config_file), os.path.join(logdir_path, version, config_file.rstrip('.json')), str(nFactor)]
values = [os.path.join(config_path, config_file), logdir_path_config, str(nFactor)]
cmd = ' '.join(['python3', main_code] + [sep.join([option, value]) for option, value in zip(options, values)])
file.write(cmd+'\n')
if notification:
Expand Down

0 comments on commit a02a8c3

Please sign in to comment.