Skip to content

Commit fe17407

Browse files
authored
#233 Merge pull request from deshima-dev/astropenguin/issue232
Remove deprecated data type (numpy.float_)
2 parents a5c61ae + 72db1bd commit fe17407

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

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.0
6+
version: 2025.4.1
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.0
14+
pip install decode==2025.4.1
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.0"
13+
__version__ = "2025.4.1"
1414

1515

1616
# submodules

decode/fit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def baseline(
1919
*,
2020
order: int = 0,
2121
model: str = "LinearRegression",
22-
weight: Optional[Union[NDArray[np.float_], float]] = None,
22+
weight: Optional[Union[NDArray[np.float64], float]] = None,
2323
**options: Any,
2424
) -> xr.DataArray:
2525
"""Fit baseline by polynomial and atmospheric models.
@@ -67,7 +67,7 @@ def baseline(
6767
else:
6868
model.fit(X, y) # type: ignore
6969

70-
coeff: NDArray[np.float_] = model.coef_ # type: ignore
70+
coeff: NDArray[np.float64] = model.coef_ # type: ignore
7171

7272
# create baseline
7373
baseline = xr.zeros_like(dems)
@@ -80,7 +80,7 @@ def baseline(
8080
return baseline
8181

8282

83-
def dtau_dpwv(freq: NDArray[np.float_]) -> xr.DataArray:
83+
def dtau_dpwv(freq: NDArray[np.float64]) -> xr.DataArray:
8484
"""Calculate dtau/dpwv as a function of frequency.
8585
8686
Args:

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.0"
3+
version = "2025.4.1"
44
description = "DESHIMA code for data analysis"
55
authors = [
66
"Akio Taniguchi <taniguchi.akio@gmail.com>",

tests/test_assign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# constants
1010
DEMS_DIR = Path(__file__).parents[1] / "data" / "dems"
11-
DEMS = load.dems(DEMS_DIR / "dems_20171111110002.nc.gz")
11+
DEMS = load.dems(DEMS_DIR / "dems_20171111110002.nc.gz").compute()
1212

1313

1414
def test_assign_scan() -> None:

0 commit comments

Comments
 (0)