Created
April 13, 2013 06:13
-
-
Save cdeil/5377244 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 | |
running test | |
running build | |
running build_py | |
generating default astroquery.cfg file | |
Generation of default configuration item failed! Stdout and stderr are shown below. | |
Stdout: | |
Stderr: | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/config/configuration.py", line 627, in generate_all_config_items | |
package = get_loader(pkgornm).load_module(pkgornm) | |
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 246, in load_module | |
mod = imp.load_module(fullname, self.file, self.filename, self.etc) | |
File "/Users/deil/code/astroquery/build/lib/astroquery/__init__.py", line 116, in <module> | |
config.configuration.update_default_config(__package__, config_dir) | |
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/config/configuration.py", line 688, in update_default_config | |
if os.path.exists(cfgfn): | |
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 18, in exists | |
os.stat(path) | |
TypeError: coercing to Unicode: need string or buffer, NoneType found | |
running build_scripts | |
WARNING: ConfigurationDefaultMissingWarning: Requested default configuration file astroquery/astroquery.cfg is not a file. Cannot install default profile. If you are importing from source, this is expected. [astroquery] | |
==================================================================== 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. | |
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 21 items / 1 errors | |
astroquery/irsadust/tests/test_irsa_dust.py .......FFFFFFF | |
astroquery/tests/test_magpis.py . | |
astroquery/tests/test_nist.py .. | |
astroquery/tests/test_ukidss.py ... | |
astroquery/tests/test_vizier.py . | |
=========================================================================== ERRORS =========================================================================== | |
_______________________________________________________ ERROR collecting astroquery/tests/test_nrao.py _______________________________________________________ | |
astroquery/tests/test_nrao.py:1: in <module> | |
> from astroquery import nrao | |
astroquery/nrao/__init__.py:1: in <module> | |
> from nrao_image_archive import * | |
astroquery/nrao/nrao_image_archive.py:20: in <module> | |
> import coords | |
E ImportError: No module named coords | |
========================================================================== FAILURES ========================================================================== | |
______________________________________________________________ TestDust.test_dust_result_table _______________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106b4af10> | |
def test_dust_result_table(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
> result = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:57: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106b4af50>, xml_tree = <Element 'results' at 0x106b4af90>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106b53a90>, xml_root = <Element 'results' at 0x106b4af90> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106b53ad0>, xml_node = <Element 'objname' at 0x106b53990>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
________________________________________________________________ TestDust.test_append_results ________________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106bdbb10> | |
def test_append_results(self): | |
# Build first DustResults, length 1 | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
> result1 = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:78: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106bdbb50>, xml_tree = <Element 'results' at 0x106bdbb90>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106c01490>, xml_root = <Element 'results' at 0x106bdbb90> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106c014d0>, xml_node = <Element 'objname' at 0x106bdbc10>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
______________________________________________________________ TestDust.test_dust_result_image _______________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106b70490> | |
def test_dust_result_image(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
self.set_ext_image_text("file:" + self.data("test.fits"), xml_tree) | |
> result = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:108: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106b704d0>, xml_tree = <Element 'results' at 0x106b70510>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106b5af10>, xml_root = <Element 'results' at 0x106b70510> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106b5ae90>, xml_node = <Element 'objname' at 0x106b70450>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
_________________________________________________________ TestDust.test_dust_result_ext_detail_table _________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106b53fd0> | |
def test_dust_result_ext_detail_table(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
self.set_ext_table_text("file:" + self.data("dust_ext_detail.tbl"), xml_tree) | |
> result = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:118: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106b53c90>, xml_tree = <Element 'results' at 0x106b53e50>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106c01b10>, xml_root = <Element 'results' at 0x106b53e50> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106c01750>, xml_node = <Element 'objname' at 0x106b53f10>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
_______________________________________________________________ TestDust.test_multi_row_tables _______________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106c018d0> | |
def test_multi_row_tables(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
> result1 = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:127: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106c01710>, xml_tree = <Element 'results' at 0x106c01bd0>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106bcda90>, xml_root = <Element 'results' at 0x106c01bd0> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106bcda10>, xml_node = <Element 'objname' at 0x106c015d0>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
______________________________________________________________ TestDust.test_multi_query_images ______________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106b53b90> | |
def test_multi_query_images(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
> result1 = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:151: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106b53cd0>, xml_tree = <Element 'results' at 0x106b53e50>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106b538d0>, xml_root = <Element 'results' at 0x106b53e50> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106b53910>, xml_node = <Element 'objname' at 0x106b53f10>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
__________________________________________________________ TestDust.test_multi_query_detail_tables ___________________________________________________________ | |
self = <astroquery.irsadust.tests.test_irsa_dust.TestDust object at 0x106c8cd10> | |
def test_multi_query_detail_tables(self): | |
data = self.data(M31_XML) | |
xml_tree = tree.ElementTree().parse(data) | |
> result1 = dust.SingleDustResult(xml_tree, "m31") | |
astroquery/irsadust/tests/test_irsa_dust.py:172: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.SingleDustResult object at 0x106c8ced0>, xml_tree = <Element 'results' at 0x106b4af50>, query_loc = 'm31' | |
def __init__(self, xml_tree, query_loc): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree representing the response to the query | |
query_loc : str | |
the location string specified in the query | |
""" | |
self._xml = xml_tree | |
self._query_loc = query_loc | |
> self._location_section = LocationSection(xml_tree) | |
astroquery/irsadust/irsa_dust.py:302: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.LocationSection object at 0x106b5a410>, xml_root = <Element 'results' at 0x106b4af50> | |
def __init__(self, xml_root): | |
""" | |
Parameters | |
---------- | |
xml_root : `xml.etree.ElementTree` | |
the xml tree where the data for this section resides | |
""" | |
location_node = xml_root.find(INPUT) | |
names = [OBJ_NAME, REG_SIZE] | |
xml_nodes = self.node_dict(names, location_node) | |
# Create the section's DustNodes | |
> self._dust_nodes = [CoordNode(xml_nodes[OBJ_NAME], col_names=["RA", "Dec", "coord sys"]), | |
NumberNode(xml_nodes[REG_SIZE], REG_SIZE, u.deg)] | |
astroquery/irsadust/irsa_dust.py:739: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.irsadust.irsa_dust.CoordNode object at 0x106b5a510>, xml_node = <Element 'objname' at 0x106b4afd0>, col_names = ['RA', 'Dec', 'coord sys'] | |
def __init__(self, xml_node, col_names): | |
""" | |
Parameters | |
---------- | |
xml_node : `xml.etree.ElementTree` | |
the xml node that provides the raw data for this DustNode | |
col_names : str | |
the names of the columns associated with this item | |
""" | |
BaseDustNode.__init__(self, xml_node) | |
self._value = utils.parse_coords(xml_node.text) | |
units = u.deg | |
> self._columns = [Column(col_names[0], units=units), | |
Column(col_names[1], units=units), | |
Column(col_names[2], dtype="S25")] | |
astroquery/irsadust/irsa_dust.py:640: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
args = (<class 'astropy.table.table.Column'>, 'RA'), kwargs = {'units': Unit("deg")}, cls = <class 'astropy.table.table.Column'> | |
@functools.wraps(func) | |
def wrapper(*args, **kwargs): | |
if len(args) > 1 and isinstance(args[1], basestring): | |
cls = args[0] # Column or MaskedColumn class from __new__(cls, ..) | |
raise ValueError(ERROR_COLUMN_ARGS_MESSAGE.format(class_name=cls.__name__, | |
> first_arg=repr(args[1]))) | |
E ValueError: | |
E The first argument to Column is the string 'RA', which was probably intended | |
E as the column name. Starting in Astropy 0.3 the argument order for initializing | |
E a Column object is Column(data=None, name=None, ...). | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.3.dev3759-py2.7-macosx-10.8-x86_64.egg/astropy/table/table.py:50: ValueError | |
======================================================= 7 failed, 14 passed, 1 error in 19.56 seconds ======================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One thing I notice - you probably don't have some of the weird dependencies (coords, for example) installed.