From f21ed95778dc5b81cc5a3d2fdaa1f0b19aa7c7f6 Mon Sep 17 00:00:00 2001 From: "Walter.Kolczynski" Date: Thu, 25 Jul 2024 11:19:30 -0500 Subject: [PATCH] Fix pycode style --- workflow/rocoto/gefs_tasks.py | 5 ++--- workflow/rocoto/gfs_tasks.py | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/workflow/rocoto/gefs_tasks.py b/workflow/rocoto/gefs_tasks.py index fdb2a9f7ed..dac6103113 100644 --- a/workflow/rocoto/gefs_tasks.py +++ b/workflow/rocoto/gefs_tasks.py @@ -141,8 +141,7 @@ def fcst(self): num_fcst_segments = len(self.app_config.fcst_segments) - 1 fcst_vars = self.envars.copy() - fcst_envars_dict = {'FCST_SEGMENT': '#seg#' - } + fcst_envars_dict = {'FCST_SEGMENT': '#seg#'} for key, value in fcst_envars_dict.items(): fcst_vars.append(rocoto.create_envar(name=key, value=str(value))) @@ -193,7 +192,7 @@ def efcs(self): # loop over member to create a separate metatask for each instead # of a metatask of a metatask. # - tasks=[] + tasks = [] for member in [f"{mem:03d}" for mem in range(1, self.nmem + 1)]: efcsenvars = self.envars.copy() diff --git a/workflow/rocoto/gfs_tasks.py b/workflow/rocoto/gfs_tasks.py index 876d8df06d..0f4f2f65ed 100644 --- a/workflow/rocoto/gfs_tasks.py +++ b/workflow/rocoto/gfs_tasks.py @@ -886,8 +886,7 @@ def _fcst_forecast_only(self): num_fcst_segments = 1 fcst_vars = self.envars.copy() - fcst_envars_dict = {'FCST_SEGMENT': '#seg#' - } + fcst_envars_dict = {'FCST_SEGMENT': '#seg#'} for key, value in fcst_envars_dict.items(): fcst_vars.append(rocoto.create_envar(name=key, value=str(value))) @@ -953,8 +952,7 @@ def _fcst_cycled(self): num_fcst_segments = 1 fcst_vars = self.envars.copy() - fcst_envars_dict = {'FCST_SEGMENT', '#seg#' - } + fcst_envars_dict = {'FCST_SEGMENT', '#seg#'} for key, value in fcst_envars_dict.items(): fcst_vars.append(rocoto.create_envar(name=key, value=str(value)))