Skip to content

Commit

Permalink
actually fix numpy str type deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 authored and shorvath-noaa committed Aug 15, 2023
1 parent 6041768 commit 97a4df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/troute-network/troute/nhd_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,8 +1054,8 @@ def _read_timeslice_file(f):
t = ds.variables['time'][:].filled(fill_value = np.nan)
qual = ds.variables['discharge_quality'][:].filled(fill_value = np.nan)

stationId = np.apply_along_axis(''.join, 1, stns.astype(np.dtype.str))
time_str = np.apply_along_axis(''.join, 1, t.astype(np.dtype.str))
stationId = np.apply_along_axis(''.join, 1, stns.astype(str))
time_str = np.apply_along_axis(''.join, 1, t.astype(str))
stationId = np.char.strip(stationId)

timeslice_observations = (pd.DataFrame({
Expand Down

0 comments on commit 97a4df7

Please sign in to comment.