Skip to content

Commit

Permalink
FIX: fix np.Inf for numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Jun 25, 2024
1 parent 68be661 commit f0d3bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyrad_proc/pyrad/io/read_data_mxpol.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MissingOptionalDependency(Exception):

# -------------------------- classes - MXPOL ------------------------------ #
class pyrad_MXPOL(pyart.core.Radar):
def __init__(self, filename, field_names=None, max_range=np.Inf,
def __init__(self, filename, field_names=None, max_range=np.inf,
min_range=10000, pyrad_names=True):
# find information based on filename
all_files = [filename]
Expand Down Expand Up @@ -203,7 +203,7 @@ def __init__(self, filename, field_names=None, max_range=np.Inf,
# -------------------------- classes - IDL --------------------------- #

class pyrad_IDL(pyart.core.Radar):
def __init__(self, filename, field_names=None, max_range=np.Inf,
def __init__(self, filename, field_names=None, max_range=np.inf,
min_range=10000):

# find information based on filename
Expand Down

0 comments on commit f0d3bf3

Please sign in to comment.