Skip to content

Commit

Permalink
Fix pycode style
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed Jul 30, 2024
1 parent f1d4a9a commit f21ed95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions workflow/rocoto/gefs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down Expand Up @@ -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()
Expand Down
6 changes: 2 additions & 4 deletions workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down Expand Up @@ -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)))

Expand Down

0 comments on commit f21ed95

Please sign in to comment.