Skip to content

Commit

Permalink
GitHub Action: Apply Pep8-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 21, 2023
1 parent 33d80d7 commit 4087165
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion jobs/cosmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def main(starttime, hstart, hstop, cfg, model_cfg):
tools.create_dir(cfg.cosmo_restart_out, "cosmo_restart_out")

# Copy cosmo executable
tools.copy_file(cfg.cosmo_bin, os.path.join(cfg.cosmo_work, cfg.cosmo['execname']))
tools.copy_file(cfg.cosmo_bin,
os.path.join(cfg.cosmo_work, cfg.cosmo['execname']))

# Prepare namelist and submit job
tracer_csvfile = os.path.join(cfg.chain_src_dir, 'cases', cfg.casename,
Expand Down
3 changes: 1 addition & 2 deletions jobs/int2lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ def main(starttime, hstart, hstop, cfg, model_cfg):
multi_layer = ".TRUE."
output_file = os.path.join(cfg.int2lm_work, "INPUT")
with open(output_file, "w") as outf:
outf.write(to_write.format(cfg=cfg,
multi_layer=multi_layer))
outf.write(to_write.format(cfg=cfg, multi_layer=multi_layer))

# Prepare runscript
with open(cfg.int2lm_runjob) as input_file:
Expand Down
7 changes: 3 additions & 4 deletions jobs/online_vprm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ def main(starttime, hstart, hstop, cfg, model_cfg):
tools.create_dir(dest_dir, "input data for vprm")

modis_data_nc = os.path.join(src_dir, cfg.online_vprm['modis_filename'])
logging.info("Copying MODIS file from {} to {}".format(
src_dir, dest_dir))
logging.info("Copying MODIS file from {} to {}".format(src_dir, dest_dir))
tools.copy_file(modis_data_nc, os.path.join(dest_dir, dest_modis))

vegetation_data_nc = os.path.join(src_dir, cfg.online_vprm['vegetation_filename'])
vegetation_data_nc = os.path.join(src_dir,
cfg.online_vprm['vegetation_filename'])
logging.info("Copying vegetation class fraction file from {} to {}".format(
src_dir, dest_dir))
tools.copy_file(vegetation_data_nc, os.path.join(dest_dir,
dest_vegetation))

1 change: 1 addition & 0 deletions run_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def parse_arguments():


class Config():

def __init__(self, casename):
# Global attributes (initialized with default values)
self.user_name = os.environ['USER']
Expand Down

0 comments on commit 4087165

Please sign in to comment.