Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
comment out yaml overwrite for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatoriu committed Oct 29, 2020
1 parent e2e7830 commit 3f9293c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions submit_jobs/submit_jobs/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,17 @@ def get(self, **params):
if 'memory' in params.keys():
config['memory'] = params['memory']

# overwrite config yaml with memory
config_template = WORKDIR+"/submit_jobs/register.yaml"
new_config = ''
with open(config_template, 'r') as infile:
new_config = infile.read()
new_config = new_config.format(**config)
os.remove(params['config_path'])
with open(params['config_path'], 'w') as outfile:
outfile.write(new_config)
# TODO: bug fix needed -- this mangles the input section of the config yaml
# Commenting out for now
# # overwrite config yaml with memory
# config_template = WORKDIR+"/submit_jobs/register.yaml"
# new_config = ''
# with open(config_template, 'r') as infile:
# new_config = infile.read()
# new_config = new_config.format(**config)
# os.remove(params['config_path'])
# with open(params['config_path'], 'w') as outfile:
# outfile.write(new_config)

logging.debug('fields')
logging.debug(fields)
Expand Down

0 comments on commit 3f9293c

Please sign in to comment.