Skip to content

Commit

Permalink
#84 Merge pull request from deshima-dev/astropenguin/issue83
Browse files Browse the repository at this point in the history
Use numpy.float64 instead of deprecated numpy.float
  • Loading branch information
astropenguin authored Apr 13, 2024
2 parents eacae1c + 35209ab commit 3cd3ae7
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Click the budge below to open it in [Google colaboratory](http://colab.research.

### Stable version (recommended)

[![open stable version in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deshima-dev/deshima-sensitivity/blob/v0.4.1/sensitivity.ipynb)
[![open stable version in colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deshima-dev/deshima-sensitivity/blob/v0.4.2/sensitivity.ipynb)

### Latest version

Expand Down
2 changes: 1 addition & 1 deletion deshima_sensitivity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""
# flake8: noqa
__version__ = "0.4.1"
__version__ = "0.4.2"


# modules
Expand Down
2 changes: 1 addition & 1 deletion deshima_sensitivity/atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def eta_atm_interp(eta_atm_dataframe: pd.DataFrame) -> Callable:
etafun = desim.eta_atm_interp(eta_atm_df)
"""
x = np.array(list(eta_atm_dataframe)[1:]).astype(np.float)
x = np.array(list(eta_atm_dataframe)[1:]).astype(np.float64)
y = eta_atm_dataframe["F"].values
z = eta_atm_dataframe.iloc[:, 1:].values
return interp2d(x, y, z, kind="cubic")
65 changes: 59 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deshima-sensitivity"
version = "0.4.1"
version = "0.4.2"
description = "Sensitivity calculator for DESHIMA-type spectrometers"
authors = ["Akira Endo <a.endo@tudelft.nl>"]
maintainers = [
Expand Down Expand Up @@ -29,6 +29,7 @@ pandas = [
{ version = ">=1.3, <1.4", python = ">=3.7.1, <3.8" },
{ version = "^1.3", python = ">=3.8, <3.11" },
]
pandas-dataclasses = "^0.2"
scipy = "^1.4"

[tool.poetry.dev-dependencies]
Expand All @@ -38,6 +39,7 @@ ipython = [
{ version = "^8.4", python = ">=3.8, <3.11" },
]
myst-parser = "^0.18"
pandas-stubs = "^1.2"
pydata-sphinx-theme = "^0.9"
pytest = "^7.1"
sphinx = "^5.0"
Expand Down
2 changes: 1 addition & 1 deletion sensitivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"metadata": {},
"outputs": [],
"source": [
"! pip install -q \"deshima-sensitivity==0.4.1\""
"! pip install -q \"deshima-sensitivity==0.4.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.4.1"
assert __version__ == "0.4.2"

0 comments on commit 3cd3ae7

Please sign in to comment.