Skip to content

Commit

Permalink
FIX: change deprecated np.str in arm_vpt to str (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
isilber authored Aug 14, 2023
1 parent 35d6013 commit 6d48f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyart/aux_io/arm_vpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def read_kazr(
sweep_number["data"] = np.array([0], dtype=np.int32)

sweep_mode = filemetadata("sweep_mode")
sweep_mode["data"] = np.array(["vertical_pointing"], dtype=np.str)
sweep_mode["data"] = np.array(["vertical_pointing"], dtype=str)

fixed_angle = filemetadata("fixed_angle")
fixed_angle["data"] = np.array([90.0], dtype=np.float32)
Expand Down Expand Up @@ -168,7 +168,7 @@ def read_kazr(
frequency["data"] = np.array([omega / 1e9], dtype=np.float32)

prt_mode = filemetadata("prt_mode")
prt_mode["data"] = np.array(["fixed"], dtype=np.str)
prt_mode["data"] = np.array(["fixed"], dtype=str)

prf = float(ncobj.pulse_repetition_frequency.split()[0])
prt = filemetadata("prt")
Expand Down

0 comments on commit 6d48f1b

Please sign in to comment.