Created
June 9, 2014 12:45
-
-
Save bsipocz/c298d2f7fb1c88d057a4 to your computer and use it in GitHub Desktop.
Failing tests in test_findstars.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(astropy-dev)bsipocz@kecske:~/munka/devel/photutils$ python setup.py test --coverage | |
running test | |
running build | |
running build_py | |
copying photutils/utils/sampling.c -> build/lib.macosx-10.6-x86_64-2.7/photutils/utils | |
running build_ext | |
skipping 'photutils/circular_overlap.c' Cython extension (up-to-date) | |
skipping 'photutils/elliptical_exact.c' Cython extension (up-to-date) | |
skipping 'photutils/utils/sampling.c' Cython extension (up-to-date) | |
WARNING: ConfigurationDefaultMissingWarning: Could not determine version of package photutils Cannot install default profile. If you are importing from source, this is expected. [photutils._astropy_init] | |
============================================================ test session starts ============================================================ | |
platform darwin -- Python 2.7.5 -- pytest-2.5.1 | |
Running tests with Astropy version 0.4.dev9001. | |
Running tests in photutils /Users/bsipocz/munka/devel/photutils/docs. | |
Platform: Darwin-10.8.0-x86_64-i386-32bit | |
Executable: /Users/bsipocz/.virtualenvs/astropy-dev/bin/python | |
Full Python Version: | |
2.7.5 (default, Oct 7 2013, 17:12:32) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] | |
encodings: sys: ascii, locale: UTF-8, filesystem: utf-8, unicode bits: 15 | |
byteorder: little | |
float info: dig: 15, mant_dig: 15 | |
Numpy: 1.8.1 | |
Scipy: 0.13.2 | |
Matplotlib: 1.3.1 | |
h5py: not available | |
plugins: cache, pep8 | |
collected 223 items | |
photutils/datasets/tests/test_load.py .s | |
photutils/datasets/tests/test_make.py . | |
photutils/detection/tests/test_core.py .............. | |
photutils/detection/tests/test_findstars.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | |
photutils/detection/tests/test_morphology.py ........................................................................ | |
photutils/tests/test_aperture_photometry.py ................................. | |
photutils/tests/test_apertures.py ..... | |
photutils/tests/test_arrayutils.py ........ | |
photutils/tests/test_psf_photometry.py ....... | |
photutils/tests/test_psfs.py ..... | |
photutils/utils/tests/test_sampling.py ............ | |
photutils/utils/tests/test_scale_img.py ........ | |
================================================================= FAILURES ================================================================== | |
____________________________________________________ TestDAOFind.test_ellrotobj[0.5-0.5] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fab690>, fwhm = 0.5, sigma_radius = 0.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[0.5-1.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fab7d0>, fwhm = 0.5, sigma_radius = 1.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[0.5-2.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc05b0>, fwhm = 0.5, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[0.5-5.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0310>, fwhm = 0.5, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[0.5-10.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5faba30>, fwhm = 0.5, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[1.0-0.5] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0b70>, fwhm = 1.0, sigma_radius = 0.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[1.0-1.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0e90>, fwhm = 1.0, sigma_radius = 1.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[1.0-2.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f8670>, fwhm = 1.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[1.0-5.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0030>, fwhm = 1.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[1.0-10.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x6903910>, fwhm = 1.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[2.0-0.5] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x6903bf0>, fwhm = 2.0, sigma_radius = 0.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[2.0-1.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5096b90>, fwhm = 2.0, sigma_radius = 1.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[2.0-2.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0d10>, fwhm = 2.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[2.0-5.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fb2a50>, fwhm = 2.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[2.0-10.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f8ff0>, fwhm = 2.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[5.0-0.5] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x6903d50>, fwhm = 5.0, sigma_radius = 0.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[5.0-1.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x69031f0>, fwhm = 5.0, sigma_radius = 1.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[5.0-2.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f89d0>, fwhm = 5.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
____________________________________________________ TestDAOFind.test_ellrotobj[5.0-5.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fabfb0>, fwhm = 5.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[5.0-10.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fab310>, fwhm = 5.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[10.0-0.5] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f8b10>, fwhm = 10.0, sigma_radius = 0.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[10.0-1.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0f90>, fwhm = 10.0, sigma_radius = 1.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[10.0-2.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fc0f50>, fwhm = 10.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
___________________________________________________ TestDAOFind.test_ellrotobj[10.0-5.0] ____________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fb28b0>, fwhm = 10.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:299: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
___________________________________________________ TestDAOFind.test_ellrotobj[10.0-10.0] ___________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f8590>, fwhm = 10.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS1))) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:169: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:299: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_________________________________________________ TestDAOFind.test_ellrotobj_threshold[3.0] _________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x69030b0>, threshold = 3.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:183: ValueError | |
_________________________________________________ TestDAOFind.test_ellrotobj_threshold[5.0] _________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x5fb29d0>, threshold = 5.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:183: ValueError | |
________________________________________________ TestDAOFind.test_ellrotobj_threshold[10.0] _________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestDAOFind object at 0x68f8130>, threshold = 10.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = daofind(self.img, fwhm, threshold, sigma_radius=sigma_radius) | |
datafn = 'daofind_test_fwhm%04.1f_thresh%04.1f_sigrad%04.1f.txt' % \ | |
(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:183: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[0.5-1.3] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc0ed0>, fwhm = 0.5, sigma_radius = 1.3 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[0.5-1.5] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fab5b0>, fwhm = 0.5, sigma_radius = 1.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[0.5-2.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fb2cd0>, fwhm = 0.5, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[0.5-5.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x6903410>, fwhm = 0.5, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[0.5-10.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fb23d0>, fwhm = 0.5, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[1.0-1.3] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x68f86b0>, fwhm = 1.0, sigma_radius = 1.3 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[1.0-1.5] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4ce2350>, fwhm = 1.0, sigma_radius = 1.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[1.0-2.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc0570>, fwhm = 1.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[1.0-5.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fabd50>, fwhm = 1.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[1.0-10.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x6903610>, fwhm = 1.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[2.0-1.3] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4ce2d90>, fwhm = 2.0, sigma_radius = 1.3 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[2.0-1.5] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x68f84f0>, fwhm = 2.0, sigma_radius = 1.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[2.0-2.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4ce2cb0>, fwhm = 2.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[2.0-5.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fb2db0>, fwhm = 2.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[2.0-10.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4cf2230>, fwhm = 2.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[5.0-1.3] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fb2e70>, fwhm = 5.0, sigma_radius = 1.3 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[5.0-1.5] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc0990>, fwhm = 5.0, sigma_radius = 1.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[5.0-2.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x6903c10>, fwhm = 5.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[5.0-5.0] ________________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4cf2f50>, fwhm = 5.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[5.0-10.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x68f8050>, fwhm = 5.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[10.0-1.3] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc04b0>, fwhm = 10.0, sigma_radius = 1.3 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:421: UserWarning: Sources were found, but none pass the sharpness and roundness criteria. | |
'roundness criteria.', UserWarning) | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[10.0-1.5] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x6903110>, fwhm = 10.0, sigma_radius = 1.5 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[10.0-2.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4ce2cf0>, fwhm = 10.0, sigma_radius = 2.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:201: ValueError | |
_______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[10.0-5.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x68f8b30>, fwhm = 10.0, sigma_radius = 5.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
assert_allclose(np.array(tbl).view(np.float), | |
> np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:202: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:410: UserWarning: No sources were found. | |
warnings.warn('No sources were found.', UserWarning) | |
______________________________________________ TestIRAFStarFind.test_isf_ellrotobj[10.0-10.0] _______________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc0190>, fwhm = 10.0, sigma_radius = 10.0 | |
@pytest.mark.parametrize(('fwhm', 'sigma_radius'), | |
list(itertools.product(VALS1, VALS2))) | |
def test_isf_ellrotobj(self, fwhm, sigma_radius): | |
self._setup() | |
threshold = 5.0 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
assert_allclose(np.array(tbl).view(np.float), | |
> np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:202: ValueError | |
-------------------------------------------------------------- Captured stderr -------------------------------------------------------------- | |
photutils/detection/findstars.py:410: UserWarning: No sources were found. | |
warnings.warn('No sources were found.', UserWarning) | |
____________________________________________ TestIRAFStarFind.test_isf_ellrotobj_threshold[3.0] _____________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x6903a70>, threshold = 3.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
def test_isf_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:215: ValueError | |
____________________________________________ TestIRAFStarFind.test_isf_ellrotobj_threshold[5.0] _____________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x4ce2890>, threshold = 5.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
def test_isf_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:215: ValueError | |
____________________________________________ TestIRAFStarFind.test_isf_ellrotobj_threshold[10.0] ____________________________________________ | |
self = <photutils.detection.tests.test_findstars.TestIRAFStarFind object at 0x5fc0a30>, threshold = 10.0 | |
@pytest.mark.parametrize(('threshold'), THRESHOLDS) | |
def test_isf_ellrotobj_threshold(self, threshold): | |
self._setup() | |
fwhm = 3.0 | |
sigma_radius = 1.5 | |
tbl = irafstarfind(self.img, fwhm, threshold, | |
sigma_radius=sigma_radius) | |
datafn = 'irafstarfind_test_fwhm{0:04.1f}_thresh{1:04.1f}_sigrad{2:04.1f}.txt'\ | |
.format(fwhm, threshold, sigma_radius) | |
datafn = op.join(op.dirname(op.abspath(__file__)), 'data', datafn) | |
t = Table.read(datafn, format='ascii') | |
> assert_allclose(np.array(tbl).view(np.float), | |
np.array(t).view(np.float)) | |
E ValueError: new type not compatible with array. | |
photutils/detection/tests/test_findstars.py:215: ValueError | |
============================================= 56 failed, 166 passed, 1 skipped in 82.13 seconds ============================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment