Skip to content

Commit

Permalink
minor phc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Faes committed Feb 10, 2024
1 parent a9d63fc commit 3228a5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Welcome to **pyhdust** documentation!
=============================================================
**Analysis tools for multi-technique astronomical data and** *hdust* **models**. About the *hdust* code, see Carciofi & Bjorkman (`2006 <http://adsabs.harvard.edu/abs/2006ApJ...639.1081C>`_, `2008 <http://adsabs.harvard.edu/abs/2008ApJ...684.1374C>`_).

Pyhdust is currently at **version 1.5.9**.
Pyhdust is currently at **version 1.5.9-2**.

Package contents:

Expand Down
2 changes: 1 addition & 1 deletion pyhdust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
except ImportError:
_warn.warn("# matplotlib and/or scipy module not installed!!")

__version__ = "1.5.9-1"
__version__ = "1.5.9-2"
__release__ = "Stable"
__author__ = "Daniel Moser"
__email__ = "dmfaes@gmail.com"
Expand Down
2 changes: 1 addition & 1 deletion pyhdust/phc.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def convnorm(x, arr, pattern):
x = _np.linspace(x0[0], x0[-1], len(x0) - 1)
pattern = _np.interp(x, x0, pattern0)
dx = (x[-1] - x[0]) / (len(x) - 1.0)
cut = len(x) / 2
cut = len(x) // 2
return _np.convolve(pattern, arr)[cut:-cut] * dx


Expand Down
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def recfiles(chdir, path):

setup(
name="pyhdust",
version="1.5.9-1",
version="1.5.9-2",
description=(
"Analysis tools for multi-technique astronomical data and hdust models"
),
Expand All @@ -82,7 +82,12 @@ def recfiles(chdir, path):
# package_dir = {'../'},
zip_safe=False,
python_requires=">=3.6",
install_requires=["numpy>=1.18.2", "six<=1.16.0", "astropy<=5.1.1", "python-dateutil<=2.8.1"],
install_requires=[
"numpy>=1.18.2",
"six<=1.16.0",
"astropy<=5.1.1",
"python-dateutil<=2.8.1",
],
long_description=rd("README.rst"),
classifiers=[
# "Development Status :: 4 - Beta",
Expand Down

0 comments on commit 3228a5d

Please sign in to comment.