From adae24cf6c08ca327f74c8bcd3aa9c89cbb28724 Mon Sep 17 00:00:00 2001 From: Walter Kolczynski - NOAA Date: Wed, 22 Feb 2023 14:45:49 -0500 Subject: [PATCH] Fix python style errors (#1330) Some python style errors crept in to develop because we ignored pynorm failures during the PR process. These errors are now corrected. --- test/diff_grib_files.py | 1 - workflow/applications.py | 2 -- workflow/rocoto/workflow_tasks.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/test/diff_grib_files.py b/test/diff_grib_files.py index 38af74fd95..e0eb7936db 100755 --- a/test/diff_grib_files.py +++ b/test/diff_grib_files.py @@ -15,7 +15,6 @@ Path to the second grib2 file ''' - import re import sys import subprocess diff --git a/workflow/applications.py b/workflow/applications.py index 9c9996b839..717940a1bd 100644 --- a/workflow/applications.py +++ b/workflow/applications.py @@ -396,8 +396,6 @@ def _get_cycled_task_names(self): gdas_tasks += gdas_gfs_common_tasks_after_fcst - - if self.do_wave and 'gdas' in self.wave_cdumps: if self.do_wave_bnd: gdas_tasks += wave_bndpnt_tasks diff --git a/workflow/rocoto/workflow_tasks.py b/workflow/rocoto/workflow_tasks.py index b82ed719de..ec4f48bd7b 100644 --- a/workflow/rocoto/workflow_tasks.py +++ b/workflow/rocoto/workflow_tasks.py @@ -1351,7 +1351,7 @@ def create_wf_task(task_name, resources, 'varval': f'{varval}', 'vardict': vardict} - cycledefstr = cdump.replace('enkf','') if cycledef is None else cycledef + cycledefstr = cdump.replace('enkf', '') if cycledef is None else cycledef task_dict = {'taskname': f'{tasknamestr}', 'cycledef': f'{cycledefstr}',