From c9846beaa2155156addc2b67422a9cc562049efc Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 30 Jan 2024 16:56:18 +0000 Subject: [PATCH] GitHub Action: Apply Pep8-formatting --- jobs/prepare_cosmo.py | 1 + jobs/reduce_output.py | 1 - run_chain.py | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/jobs/prepare_cosmo.py b/jobs/prepare_cosmo.py index f0208333..8cea9005 100644 --- a/jobs/prepare_cosmo.py +++ b/jobs/prepare_cosmo.py @@ -62,6 +62,7 @@ def set_cfg_variables(cfg): cfg.meteo.inc = 1 cfg.meteo.prefix = 'lffd' + def main(cfg): """ **COSMO Data Preparation** diff --git a/jobs/reduce_output.py b/jobs/reduce_output.py index 435dbfeb..af68b2cc 100644 --- a/jobs/reduce_output.py +++ b/jobs/reduce_output.py @@ -75,7 +75,6 @@ def main(cfg): cfg.output_levels = -1 if not hasattr(cfg, 'convert_gas'): cfg.convert_gas = True - """Get list of constant files""" cfiles = [] read_cfile = False diff --git a/run_chain.py b/run_chain.py index 0f7e5a72..1d1f4d36 100755 --- a/run_chain.py +++ b/run_chain.py @@ -161,7 +161,6 @@ def run_chunk(cfg, force, resume): cfg.cosmo_restart_out = cfg.chain_root / 'cosmo' / 'restart' cfg.cosmo_restart_in = cfg.chain_root_prev / 'cosmo' / 'restart' - if cfg.is_async: # Empty curent job ids cfg.job_ids['current'] = {} @@ -376,7 +375,7 @@ def main(): # Check constraint if cfg.constraint: assert cfg.constraint in ['gpu', 'mc'], ("Unknown constraint, use" - "gpu or mc") + "gpu or mc") # Print config before chain starts cfg.print_config()