Skip to content

Commit

Permalink
Merge branch 'config_yaml' of github.com:C2SM/processing-chain into c…
Browse files Browse the repository at this point in the history
…onfig_yaml
  • Loading branch information
mjaehn committed Oct 19, 2023
2 parents 6be8cc6 + 0fa687d commit fb0adb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 4 additions & 5 deletions jobs/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ def set_cfg_variables(cfg, starttime, hstart, hstop):

cfg.input_files_scratch = {}
for varname in cfg.input_files:
cfg.input_files_scratch[varname] = os.path.join(cfg.icon_input,
os.path.basename(cfg.input_files[varname]))
cfg.input_files_scratch[varname] = os.path.join(
cfg.icon_input, os.path.basename(cfg.input_files[varname]))

cfg.ini_datetime_string = (
starttime +
timedelta(hours=hstart)).strftime('%Y-%m-%dT%H:00:00Z')
starttime + timedelta(hours=hstart)).strftime('%Y-%m-%dT%H:00:00Z')
cfg.end_datetime_string = (
starttime + timedelta(hours=hstart) +
timedelta(hours=hstop)).strftime('%Y-%m-%dT%H:00:00Z')
Expand Down
7 changes: 4 additions & 3 deletions run_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@ def run_chain(work_root, model_cfg, cfg, start_time, hstart, hstop, job_names,
cfg.chain_root_last_run = os.path.join(work_root, cfg.casename,
cfg.job_id_last_run)
# Set restart directories
cfg.cosmo_restart_out = os.path.join(cfg.chain_root, 'cosmo', 'restart')
cfg.cosmo_restart_in = os.path.join(cfg.chain_root_last_run, 'cosmo', 'restart')

cfg.cosmo_restart_out = os.path.join(cfg.chain_root, 'cosmo',
'restart')
cfg.cosmo_restart_in = os.path.join(cfg.chain_root_last_run, 'cosmo',
'restart')

# Check constraint
if hasattr(cfg, 'constraint'):
Expand Down

0 comments on commit fb0adb6

Please sign in to comment.