Skip to content

Commit cfba816

Browse files
authored
#235 Merge pull request from deshima-dev/astropenguin/issue234
Fix return data type of DataArray in convert.units
2 parents fe17407 + 702332a commit cfba816

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ message: "If you use this software, please cite it as below."
33

44
title: "de:code"
55
abstract: "DESHIMA code for data analysis"
6-
version: 2025.4.1
6+
version: 2025.4.2
77
date-released: 2025-04-17
88
license: "MIT"
99
doi: "10.5281/zenodo.3384216"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DESHIMA code for data analysis
1111
## Installation
1212

1313
```shell
14-
pip install decode==2025.4.1
14+
pip install decode==2025.4.2
1515
```
1616

1717
## Quick look

decode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"select",
1111
"utils",
1212
]
13-
__version__ = "2025.4.1"
13+
__version__ = "2025.4.2"
1414

1515

1616
# submodules

decode/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ def units(
108108
if isinstance(new_units, xr.DataArray):
109109
new_units = new_units.attrs["units"]
110110

111-
new_data = Quantity(da, units).to(new_units, equivalencies)
111+
new_data = Quantity(da, units).to(new_units, equivalencies).value
112112
return da.copy(data=new_data).assign_attrs(units=new_units)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "decode"
3-
version = "2025.4.1"
3+
version = "2025.4.2"
44
description = "DESHIMA code for data analysis"
55
authors = [
66
"Akio Taniguchi <taniguchi.akio@gmail.com>",

0 commit comments

Comments
 (0)