Skip to content

Commit

Permalink
STY: PEP8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed May 15, 2024
1 parent 191598b commit 4cb0902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ def read_cfradial(
if not hasattr(ncobj, "scan_name"):
warning.warn(
UserWarning,
"No scan_name attribute present in dataset, using sweep_mode instead."
"No scan_name attribute present in dataset, using sweep_mode instead.",
)
mode = netCDF4.chartostring(sweep_mode["data"][0])[()]
# Check if attribute is invalid of length 0
elif len(ncobj.scan_name) < 0 or ncobj.scan_name is None:
warning.warn(
UserWarning,
"Scan name contains no sweep information, using sweep_mode instead."
"Scan name contains no sweep information, using sweep_mode instead.",
)
mode = netCDF4.chartostring(sweep_mode["data"][0])[()]
else:
Expand Down

0 comments on commit 4cb0902

Please sign in to comment.