Skip to content

Commit

Permalink
FIX: numpy deprecation warning in scalar conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Aug 13, 2024
1 parent e5efe05 commit 0496a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyart/graph/radardisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def __init__(self, radar, shift=(0.0, 0.0)):

# radar location in latitude and longitude
if radar.latitude['data'].size == 1:
lat = float(radar.latitude['data'])
lon = float(radar.longitude['data'])
lat = float(radar.latitude['data'][0])
lon = float(radar.longitude['data'][0])
else:
# for moving platforms stores use the median location.
# The RadarDisplay object does not give a proper
Expand Down

0 comments on commit 0496a74

Please sign in to comment.