Created
April 15, 2013 07:57
-
-
Save cdeil/5386471 to your computer and use it in GitHub Desktop.
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
$ python setup.py test --package simbad | |
running test | |
running build | |
running build_py | |
regenerating default astroquery.cfg file | |
copying astroquery/astroquery.cfg -> build/lib/astroquery | |
WARNING: Module astroquery was already imported from astroquery/__init__.pyc, but /Users/deil/code/astroquery is being added to sys.path [pkg_resources] | |
==================================================================== test session starts ===================================================================== | |
platform darwin -- Python 2.7.3 -- pytest-2.3.3 | |
Running tests with Astropy version 0.3.dev3759. | |
Running tests in astroquery/simbad. | |
Platform: Darwin-12.3.0-x86_64-i386-64bit | |
Executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
Full Python Version: | |
2.7.3 (default, Nov 19 2012, 00:46:55) | |
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] | |
Numpy: 1.7.1 | |
Scipy: 0.12.0 | |
Matplotlib: 1.2.0 | |
h5py: 2.1.2 | |
collected 2 items | |
astroquery/simbad/tests/test_simbad.py FF | |
========================================================================== FAILURES ========================================================================== | |
________________________________________________________________________ test_simbad _________________________________________________________________________ | |
def test_simbad(): | |
r = simbad.QueryAroundId('m31', radius='0.5s').execute() | |
> print r.table | |
astroquery/simbad/tests/test_simbad.py:7: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.simbad.result.SimbadResult object at 0x105387950> | |
@property | |
def table(self): | |
if self.__file is None: | |
self.__file = tempfile.NamedTemporaryFile() | |
self.__file.write(self.data.encode('utf-8')) | |
self.__file.flush() | |
array = votable.parse(self.__file, | |
pedantic=self.__pedantic).get_first_table().array | |
> self.__table = array.to_table() | |
E AttributeError: 'MaskedArray' object has no attribute 'to_table' | |
astroquery/simbad/result.py:113: AttributeError | |
---------------------------------------------------------------------- Captured stdout ----------------------------------------------------------------------- | |
WARNING: W22: None:3:0: W22: The DEFINITIONS element is deprecated in VOTable 1.1. Ignoring [astropy.io.votable.exceptions] | |
WARNING: W27: None:4:0: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions] | |
WARNING: W50: None:12:0: W50: Invalid unit string '"h:m:s"' [astropy.io.votable.exceptions] | |
WARNING: W50: None:15:0: W50: Invalid unit string '"d:m:s"' [astropy.io.votable.exceptions] | |
WARNING: W47: None:33:0: W47: Missing arraysize indicates length 1 [astropy.io.votable.exceptions] | |
WARNING: W47: None:36:0: W47: Missing arraysize indicates length 1 [astropy.io.votable.exceptions] | |
WARNING: W49: None:44:98: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions] | |
WARNING: W46: None:44:121: W46: char value is too long for specified length of 1 [astropy.io.votable.exceptions] | |
WARNING: W49: None:45:122: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions] | |
WARNING: W49: None:47:122: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions] | |
WARNING: W49: None:48:122: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions] | |
_________________________________________________________________________ test_multi _________________________________________________________________________ | |
def test_multi(): | |
result = simbad.QueryMulti( | |
[simbad.QueryId('m31'), | |
simbad.QueryId('m51')]) | |
> table = result.execute().table | |
astroquery/simbad/tests/test_simbad.py:15: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.simbad.result.SimbadResult object at 0x1057d0a50> | |
@property | |
def table(self): | |
if self.__file is None: | |
self.__file = tempfile.NamedTemporaryFile() | |
self.__file.write(self.data.encode('utf-8')) | |
self.__file.flush() | |
array = votable.parse(self.__file, | |
pedantic=self.__pedantic).get_first_table().array | |
> self.__table = array.to_table() | |
E AttributeError: 'MaskedArray' object has no attribute 'to_table' | |
astroquery/simbad/result.py:113: AttributeError | |
---------------------------------------------------------------------- Captured stdout ----------------------------------------------------------------------- | |
WARNING: W49: None:45:98: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions] | |
WARNING: W46: None:45:121: W46: char value is too long for specified length of 1 [astropy.io.votable.exceptions] | |
================================================================== 2 failed in 1.16 seconds ================================================================== | |
C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment