Skip to content

Commit

Permalink
FIX: Fix when sweep_name is an empty attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Oct 31, 2023
1 parent e370522 commit 35529a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def read_cfradial(
ray_angle_res = None

# Uses ARM scan name if present.
if hasattr(ncobj, "scan_name"):
if not hasattr(ncobj, "scan_name"):
ncobj.scan_name = ""
elif len(ncobj.scan_name) > 0:
mode = ncobj.scan_name
else:
# first sweep mode determines scan_type
Expand Down

0 comments on commit 35529a7

Please sign in to comment.