Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkehoe committed Jul 24, 2024
1 parent 5fab5e4 commit 693cace
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions act/qc/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ def clean_arm_qc(
if SWATS_QC and global_qc is None and qc_attributes is None:
self._ds.clean.clean_swats_qc()


def normalize_assessment(
self,
variables=None,
Expand Down Expand Up @@ -950,11 +949,7 @@ def fix_incorrect_variable_bit_description_attributes(self):

for var_name in self._ds.data_vars:
try:
if (
not self._ds[var_name]
.attrs['long_name']
.startswith("Quality check results on")
):
if not self._ds[var_name].attrs['long_name'].startswith("Quality check results on"):
continue
except KeyError:
continue
Expand All @@ -975,11 +970,7 @@ def clean_seri_qc(self):
"""
for var_name in self._ds.data_vars:
if (
not self._ds[var_name]
.attrs['long_name']
.startswith("Quality check results on")
):
if not self._ds[var_name].attrs['long_name'].startswith("Quality check results on"):
continue

qc_var_name = var_name
Expand Down Expand Up @@ -1120,11 +1111,7 @@ def clean_swats_qc(self, fix_data_units=True):
except KeyError:
pass

if (
not self._ds[var_name]
.attrs['long_name']
.startswith("Quality check results on")
):
if not self._ds[var_name].attrs['long_name'].startswith("Quality check results on"):
continue

qc_var_name = var_name
Expand Down

0 comments on commit 693cace

Please sign in to comment.