Skip to content

Commit

Permalink
FIX: Add more robust check
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Nov 1, 2023
1 parent 35529a7 commit a80c9dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyart/io/cfradial.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ def read_cfradial(

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

0 comments on commit a80c9dd

Please sign in to comment.