Skip to content

Commit

Permalink
Merge pull request #21 from weaverba137/hmf-object
Browse files Browse the repository at this point in the history
Convert HMF code to object-oriented.
  • Loading branch information
weaverba137 committed Jan 19, 2017
2 parents e1f45fc + 0bcd309 commit bd6277a
Show file tree
Hide file tree
Showing 20 changed files with 1,050 additions and 499 deletions.
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

0 comments on commit bd6277a

Please sign in to comment.