From 9c614345ebd3921a51f093a5c48c987a32f768e1 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi <13254278+astropenguin@users.noreply.github.com> Date: Thu, 17 Apr 2025 06:02:48 +0000 Subject: [PATCH 1/2] #234 Fix return data type of DataArray in convert.units --- decode/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode/convert.py b/decode/convert.py index 37f399e..f5693d1 100644 --- a/decode/convert.py +++ b/decode/convert.py @@ -108,5 +108,5 @@ def units( if isinstance(new_units, xr.DataArray): new_units = new_units.attrs["units"] - new_data = Quantity(da, units).to(new_units, equivalencies) + new_data = Quantity(da, units).to(new_units, equivalencies).value return da.copy(data=new_data).assign_attrs(units=new_units) From 702332ae1c4ba7f8fb19dddf492a8e518d46b128 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi <13254278+astropenguin@users.noreply.github.com> Date: Thu, 17 Apr 2025 06:05:15 +0000 Subject: [PATCH 2/2] =?UTF-8?q?#234=20Update=20package=20version=20(2025.4?= =?UTF-8?q?.1=20=E2=86=92=E3=80=802025.4.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CITATION.cff | 2 +- README.md | 2 +- decode/__init__.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 51a6e9e..2d98b11 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -3,7 +3,7 @@ message: "If you use this software, please cite it as below." title: "de:code" abstract: "DESHIMA code for data analysis" -version: 2025.4.1 +version: 2025.4.2 date-released: 2025-04-17 license: "MIT" doi: "10.5281/zenodo.3384216" diff --git a/README.md b/README.md index b8965c0..10218f5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ DESHIMA code for data analysis ## Installation ```shell -pip install decode==2025.4.1 +pip install decode==2025.4.2 ``` ## Quick look diff --git a/decode/__init__.py b/decode/__init__.py index 1de75bb..e6596e5 100644 --- a/decode/__init__.py +++ b/decode/__init__.py @@ -10,7 +10,7 @@ "select", "utils", ] -__version__ = "2025.4.1" +__version__ = "2025.4.2" # submodules diff --git a/pyproject.toml b/pyproject.toml index 3df5556..520a324 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "decode" -version = "2025.4.1" +version = "2025.4.2" description = "DESHIMA code for data analysis" authors = [ "Akio Taniguchi ",