From 612695dbe22ffde6c910cd43c0330e1dd164fbe4 Mon Sep 17 00:00:00 2001 From: vrodgom Date: Fri, 15 Jun 2018 04:00:35 -0400 Subject: [PATCH] Prepare for statmorph v0.3.0. --- MANIFEST.in | 2 +- README.rst | 2 +- requirements.txt | 2 +- setup.py | 4 ++-- statmorph/statmorph.py | 2 +- statmorph/tests/test_statmorph.py | 4 +++- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 4499936..5b666e3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include LICENSE include *.rst *.txt -recursive-include statmorph *.py +recursive-include statmorph *.py *.fits recursive-include notebooks *.ipynb diff --git a/README.rst b/README.rst index 51ffc84..0af6786 100644 --- a/README.rst +++ b/README.rst @@ -21,7 +21,7 @@ morphological statistics for each source: - Some properties associated to the above statistics (Petrosian radii, half-light radii, etc.) -Although the Sersic index is, by definition, the opposite of a non-parametric +Although the Sersic index is the opposite of a non-parametric morphological quantity, it is included anyway due to its popularity. This Python implementation is largely based on IDL code originally diff --git a/requirements.txt b/requirements.txt index 27caa5d..62c4736 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ scipy>=0.19 -scikit-image>=0.13 +scikit-image>=0.14 astropy>=2.0 photutils>=0.3 diff --git a/setup.py b/setup.py index 73044b8..65f1835 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name='statmorph', - version='0.2.1', + version='0.3.0', description='Non-parametric morphological diagnostics of galaxy images', long_description=long_description, url='https://github.com/vrodgom/statmorph', @@ -33,7 +33,7 @@ keywords='astronomy galaxies galaxy-morphology non-parametric', packages=['statmorph', 'statmorph.tests'], install_requires=['scipy>=0.19', - 'scikit-image>=0.13', + 'scikit-image>=0.14', 'astropy>=2.0', 'photutils>=0.3'], ) diff --git a/statmorph/statmorph.py b/statmorph/statmorph.py index 2bacba2..06eed08 100644 --- a/statmorph/statmorph.py +++ b/statmorph/statmorph.py @@ -25,7 +25,7 @@ __all__ = ['ConvolvedSersic2D', 'SourceMorphology', 'source_morphology', '__version__'] -__version__ = '0.2.1' +__version__ = '0.3.0' def _quantile(sorted_values, q): """ diff --git a/statmorph/tests/test_statmorph.py b/statmorph/tests/test_statmorph.py index f53a0f8..369860b 100644 --- a/statmorph/tests/test_statmorph.py +++ b/statmorph/tests/test_statmorph.py @@ -6,6 +6,7 @@ from __future__ import absolute_import, division, print_function import numpy as np +import os import time import statmorph from astropy.io import fits @@ -52,7 +53,8 @@ def test1(): """ Check values for a randomly chosen galaxy. """ - hdulist = fits.open('data_slice.fits') + curdir = os.path.dirname(__file__) + hdulist = fits.open('%s/data_slice.fits' % (curdir)) image = hdulist[0].data segmap = hdulist[1].data mask = np.bool8(hdulist[2].data)