From e1b53ffb4298a8db4c974a619475f757ea273760 Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Tue, 26 Nov 2024 14:43:05 +0100 Subject: [PATCH 1/3] Update whats-new.rst --- docs/whats-new.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/whats-new.rst b/docs/whats-new.rst index 31d7f3c0..121db74d 100644 --- a/docs/whats-new.rst +++ b/docs/whats-new.rst @@ -8,6 +8,16 @@ What's New |pypi dwn| |conda dwn| + +Coming up next +-------------- + +Internals +^^^^^^^^^ + +- Fix bug raising when exporting a dataset to netcdf after erddap fetch, :issue:`412`. (:pr:``) by `G. Maze `_. + + v1.0.0 (16 Oct. 2024) --------------------- From 27c8ac98470033463c2da45f267c35505c0d527e Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Tue, 26 Nov 2024 14:43:14 +0100 Subject: [PATCH 2/3] Update erddap_data_processors.py --- argopy/data_fetchers/erddap_data_processors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/argopy/data_fetchers/erddap_data_processors.py b/argopy/data_fetchers/erddap_data_processors.py index 58c50e21..f63a1381 100644 --- a/argopy/data_fetchers/erddap_data_processors.py +++ b/argopy/data_fetchers/erddap_data_processors.py @@ -76,7 +76,6 @@ def pre_process( Fetched_url = this_ds.attrs.get("Fetched_uri") else: Fetched_url = this_ds.attrs.get("history", "").split('\n')[-1].split(' ')[-1] - Fetched_constraints = UriCName(Fetched_url) # Finally overwrite erddap attributes with those from argopy: raw_attrs = this_ds.attrs.copy() @@ -104,7 +103,7 @@ def pre_process( this_ds.attrs["Fetched_date"] = pd.to_datetime("now", utc=True).strftime( "%Y/%m/%d" ) - this_ds.attrs["Fetched_constraints"] = Fetched_constraints + this_ds.attrs["Fetched_constraints"] = UriCName(Fetched_url).cname this_ds.attrs["Fetched_uri"] = Fetched_url this_ds = this_ds[np.sort(this_ds.data_vars)] From d05984fd41bd01a6ac77df066e39bbe117b117ef Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Tue, 26 Nov 2024 18:23:30 +0100 Subject: [PATCH 3/3] Update whats-new.rst s[kip-ci] --- docs/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/whats-new.rst b/docs/whats-new.rst index 121db74d..74bde562 100644 --- a/docs/whats-new.rst +++ b/docs/whats-new.rst @@ -15,7 +15,7 @@ Coming up next Internals ^^^^^^^^^ -- Fix bug raising when exporting a dataset to netcdf after erddap fetch, :issue:`412`. (:pr:``) by `G. Maze `_. +- Fix bug raising an error when exporting a dataset to netcdf after erddap fetch, :issue:`412`. (:pr:`413`) by `G. Maze `_. v1.0.0 (16 Oct. 2024)