From c0c158cf7cbd8cea19557f94daae94b4c99ed2ff Mon Sep 17 00:00:00 2001 From: Jason Regina Date: Thu, 17 Mar 2022 15:28:47 -0500 Subject: [PATCH 1/2] remove scale_factor index due to h5netcdf update --- python/nwm_client/src/hydrotools/nwm_client/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nwm_client/src/hydrotools/nwm_client/http.py b/python/nwm_client/src/hydrotools/nwm_client/http.py index ea286690..8326c869 100644 --- a/python/nwm_client/src/hydrotools/nwm_client/http.py +++ b/python/nwm_client/src/hydrotools/nwm_client/http.py @@ -297,7 +297,7 @@ def get_DataFrame( df = ds[['reference_time', 'time', 'streamflow']].to_dataframe().reset_index() # Extract scale factor - scale_factor = ds['streamflow'].scale_factor[0] + scale_factor = ds['streamflow'].scale_factor # Scale data df.loc[:, 'streamflow'] = df['streamflow'].mul(scale_factor) From c6d2253a5ce0a70cd06901146b01c01b4f271d08 Mon Sep 17 00:00:00 2001 From: Jason Regina Date: Thu, 17 Mar 2022 15:29:05 -0500 Subject: [PATCH 2/2] bump nwm-client version to 5.0.3 --- python/nwm_client/src/hydrotools/nwm_client/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nwm_client/src/hydrotools/nwm_client/_version.py b/python/nwm_client/src/hydrotools/nwm_client/_version.py index 3a223dde..4682e613 100644 --- a/python/nwm_client/src/hydrotools/nwm_client/_version.py +++ b/python/nwm_client/src/hydrotools/nwm_client/_version.py @@ -1 +1 @@ -__version__ = "5.0.2" +__version__ = "5.0.3"