From 47d33469d775de03b3d71d7276435b5d27543ba5 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 28e5d11c32..7c04cf8dba 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 90d05fed4e..bc5ef6bfe9 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)))