Skip to content

Commit 0cce9cd

Browse files
committedMar 1, 2022
fix NOAA-OWP#180. IndexError: invalid index to scalar variable. issue introduced by h5netcdf==0.14.0
1 parent e0bc972 commit 0cce9cd

File tree

1 file changed

+1
-1
lines changed
  • python/nwm_client/src/hydrotools/nwm_client

1 file changed

+1
-1
lines changed
 

‎python/nwm_client/src/hydrotools/nwm_client/gcp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def get_DataFrame(
271271
df = ds[['reference_time', 'time', 'streamflow']].to_dataframe().reset_index()
272272

273273
# Extract scale factor
274-
scale_factor = ds['streamflow'].scale_factor[0]
274+
scale_factor = ds['streamflow'].scale_factor
275275

276276
# Scale data
277277
df.loc[:, 'streamflow'] = df['streamflow'].mul(scale_factor)

0 commit comments

Comments
 (0)
Please sign in to comment.