Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert HMF code to object-oriented. #21

Merged
merged 16 commits into from
Jan 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ matrix:
env: NUMPY_VERSION=1.7 SCIPY_VERSION=0.12

# Try numpy pre-release
# - python: 3.5
# env: NUMPY_VERSION=prerelease
- python: 3.5
env: NUMPY_VERSION=prerelease CONDA_DEPENDENCIES='nomkl scipy matplotlib'

# PEP 8 Compliance
- python: 2.7
Expand Down
10 changes: 9 additions & 1 deletion docs/pydl/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ PyDL Changelog
0.5.4 (unreleased)
------------------

* No changes yet.
* Refactor HMF code into an object to contain the data and methods.
* Use functions from :mod:`astropy.utils.data` where possible.
* Fix an integer division error encountered when using Numpy 1.12
(`Issue #19`_).
* Fixed tests that were failing on 32-bit platforms *and* Python 3.5
(`Issue #20`_).

.. _`Issue #19`: https://github.com/weaverba137/pydl/issues/19
.. _`Issue #20`: https://github.com/weaverba137/pydl/issues/20

0.5.3 (2016-12-03)
------------------
Expand Down
2 changes: 1 addition & 1 deletion pydl/median.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def median(array, width=None, axis=None, even=False):
return np.median(array)
else:
i = f.argsort()
return f[i[f.size/2]]
return f[i[f.size//2]]
else:
return np.median(array, axis=axis)
else:
Expand Down
Loading