Skip to content

Commit

Permalink
#119 Merge pull request from deshima-dev/astropenguin/issue118
Browse files Browse the repository at this point in the history
Fix wrong attribute name in make.cube
  • Loading branch information
astropenguin authored Nov 7, 2023
2 parents 61b5cba + 0e8465c commit 8a4f036
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.5.3
version: 2.5.4
date-released: 2023-11-07
license: "MIT"
doi: "10.5281/zenodo.3384216"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ DESHIMA code for data analysis
## Installation

```shell
pip install decode==2.5.3
pip install decode==2.5.4
```
2 changes: 1 addition & 1 deletion decode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"plot",
"select",
]
__version__ = "2.5.3"
__version__ = "2.5.4"


# submodules
Expand Down
4 changes: 2 additions & 2 deletions decode/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def cube(
Cube DataArray.
"""
dlon = Quantity(skycoord_grid).to(dems.lon.attrs["units"]).values
dlat = Quantity(skycoord_grid).to(dems.lat.attrs["units"]).values
dlon = Quantity(skycoord_grid).to(dems.lon.attrs["units"]).value
dlat = Quantity(skycoord_grid).to(dems.lat.attrs["units"]).value
lon_min = np.floor(dems.lon.min() / dlon) * dlon
lon_max = np.ceil(dems.lon.max() / dlon) * dlon
lat_min = np.floor(dems.lat.min() / dlat) * dlat
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "decode"
version = "2.5.3"
version = "2.5.4"
description = "DESHIMA code for data analysis"
authors = ["Akio Taniguchi <taniguchi@a.phys.nagoya-u.ac.jp>"]
keywords = [
Expand Down

0 comments on commit 8a4f036

Please sign in to comment.