Created
August 10, 2016 12:30
-
-
Save bsipocz/f4951ae7d5060611967db312ed1745d3 to your computer and use it in GitHub Desktop.
20160810_astroquery_remote_data_failures
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
============================= test session starts ============================== | |
platform darwin -- Python 3.4.5, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | |
Running tests with astroquery version 0.3.3.dev3339. | |
Running tests in lib.macosx-10.10-x86_64-3.4/astroquery docs. | |
Date: 2016-08-10T13:06:06 | |
Platform: Darwin-14.5.0-x86_64-i386-64bit | |
Executable: /Users/bsipocz/.virtualenvs/astropy-dev/bin/python3 | |
Full Python Version: | |
3.4.5 (default, Jul 1 2016, 17:54:32) | |
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] | |
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8 | |
byteorder: little | |
float info: dig: 15, mant_dig: 15 | |
Numpy: 1.11.1 | |
Matplotlib: 1.5.1 | |
Pandas: 0.18.0 | |
Astropy: 1.3.dev15925 | |
APLpy: 1.0 | |
pyregion: 1.1.4 | |
Using Astropy options: remote_data. | |
rootdir: /private/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/astroquery-test-5i7gk5rs, inifile: setup.cfg | |
plugins: cov-2.2.0, html-1.8.0, mpl-0.5, selenium-1.2.1, variables-1.4, xdist-1.14 | |
collected 780 items | |
astroquery/alfalfa/tests/test_alfalfa.py ... | |
astroquery/alma/tests/test_alma.py ...... | |
astroquery/alma/tests/test_alma_remote.py ..FFFFF. | |
astroquery/alma/tests/test_alma_utils.py ..F | |
astroquery/atomic/tests/test_atomic.py .... | |
astroquery/atomic/tests/test_atomic_remote.py .... | |
astroquery/besancon/tests/test_besancon.py .... | |
astroquery/data/README.rst . | |
astroquery/eso/tests/test_eso.py .. | |
astroquery/eso/tests/test_eso_remote.py F..F..ss....................... | |
astroquery/fermi/tests/test_fermi.py .... | |
astroquery/gama/tests/test_gama.py .. | |
astroquery/gama/tests/test_gama_remote.py .. | |
astroquery/heasarc/tests/test_heasarc_remote.py . | |
astroquery/ibe/tests/test_ibe.py ...... | |
astroquery/ibe/tests/test_ibe_remote.py .. | |
astroquery/irsa/tests/test_irsa.py ............................. | |
astroquery/irsa/tests/test_irsa_remote.py ...... | |
astroquery/irsa_dust/tests/test_irsa_dust.py .................................................................. | |
astroquery/irsa_dust/tests/test_irsa_dust_remote.py .......................................... | |
astroquery/lamda/tests/test_lamda.py . | |
astroquery/lamda/tests/test_lamda_remote.py . | |
astroquery/lcogt/tests/test_lcogt.py ............................. | |
astroquery/lcogt/tests/test_lcogt_remote.py FFFFFFFF | |
astroquery/magpis/tests/test_magpis.py ...x | |
astroquery/magpis/tests/test_magpis_remote.py .. | |
astroquery/nasa_ads/tests/test_nasaads.py F | |
astroquery/ned/tests/test_ned.py .......................... | |
astroquery/ned/tests/test_ned_remote.py .................... | |
astroquery/nist/tests/test_nist.py ... | |
astroquery/nist/tests/test_nist_remote.py .. | |
astroquery/nrao/tests/test_nrao.py .. | |
astroquery/nrao/tests/test_nrao_remote.py .. | |
astroquery/nvas/tests/test_nvas.py ........ | |
astroquery/nvas/tests/test_nvas_remote.py ... | |
astroquery/ogle/tests/test_ogle.py ... | |
astroquery/open_exoplanet_catalogue/utils.py .. | |
astroquery/open_exoplanet_catalogue/tests/test_open_exoplanet_catalogue_local.py . | |
astroquery/open_exoplanet_catalogue/tests/test_open_exoplanet_catalogue_remote.py . | |
astroquery/sdss/tests/test_sdss.py .................................xxxxxxxxxxx..................................xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...xxxxxxxxxxx....................... | |
astroquery/sdss/tests/test_sdss_remote.py ............xx.. | |
astroquery/sha/tests/test_sha.py ..... | |
astroquery/simbad/core.py .... | |
astroquery/simbad/tests/test_simbad.py ........................................................ | |
astroquery/simbad/tests/test_simbad_remote.py ......................... | |
astroquery/skyview/tests/test_skyview.py .. | |
astroquery/skyview/tests/test_skyview_remote.py ..FFFFFFFFFFFFFFFFFF. | |
astroquery/splatalogue/tests/test_splatalogue.py .......... | |
astroquery/splatalogue/tests/test_utils.py ... | |
astroquery/template_module/tests/test_module.py . | |
astroquery/template_module/tests/test_module_remote.py . | |
astroquery/tests/test_internet.py . | |
astroquery/ukidss/tests/test_ukidss.py ........... | |
astroquery/ukidss/tests/test_ukidss_remote.py ...... | |
astroquery/utils/commons.py . | |
astroquery/utils/url_helpers.py . | |
astroquery/utils/tests/test_url_helpers.py . | |
astroquery/utils/tests/test_utils.py ....................... | |
astroquery/vizier/tests/test_vizier.py ............................ | |
astroquery/vizier/tests/test_vizier_remote.py .............. | |
astroquery/xmatch/tests/test_xmatch.py ..... | |
astroquery/xmatch/tests/test_xmatch_remote.py .... | |
../docs/api.rst . | |
../docs/gallery.rst . | |
../docs/index.rst . | |
../docs/query.rst . | |
../docs/release_notice_v0.2.rst . | |
../docs/template.rst . | |
../docs/testing.rst . | |
../docs/utils.rst . | |
../docs/alfalfa/alfalfa.rst . | |
../docs/alma/alma.rst . | |
../docs/atomic/atomic.rst . | |
../docs/besancon/besancon.rst . | |
../docs/cosmosim/cosmosim.rst . | |
../docs/eso/eso.rst . | |
../docs/fermi/fermi.rst . | |
../docs/gama/gama.rst . | |
../docs/heasarc/heasarc.rst . | |
../docs/ibe/ibe.rst . | |
../docs/irsa/irsa.rst . | |
../docs/irsa/irsa_dust.rst . | |
../docs/lamda/lamda.rst . | |
../docs/magpis/magpis.rst . | |
../docs/nasa_ads/nasa_ads.rst . | |
../docs/ned/ned.rst . | |
../docs/nist/nist.rst . | |
../docs/nrao/nrao.rst . | |
../docs/nvas/nvas.rst . | |
../docs/ogle/ogle.rst . | |
../docs/open_exoplanet_catalogue/open_exoplanet_catalogue.rst . | |
../docs/sdss/sdss.rst . | |
../docs/sha/sha.rst . | |
../docs/simbad/simbad.rst . | |
../docs/skyview/skyview.rst . | |
../docs/splatalogue/splatalogue.rst . | |
../docs/ukidss/ukidss.rst . | |
../docs/vizier/vizier.rst . | |
../docs/xmatch/xmatch.rst . | |
=================================== FAILURES =================================== | |
______________________________ TestAlma.test_m83 _______________________________ | |
self = <astroquery.alma.tests.test_alma_remote.TestAlma object at 0x109784438> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmphd8r53jb' | |
def test_m83(self, temp_dir): | |
alma = Alma() | |
alma.cache_location = temp_dir | |
m83_data = alma.query_object('M83') | |
uids = np.unique(m83_data['Member ous id']) | |
> link_list = alma.stage_data(uids) | |
astroquery/alma/tests/test_alma_remote.py:68: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/alma/core.py:250: in stage_data | |
log.warn("Staging request was not successful. Try again?") | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astropy.logger.AstropyLogger object at 0x1021622b0> | |
msg = 'Staging request was not successful. Try again?', args = (), kwargs = {} | |
def warn(self, msg, *args, **kwargs): | |
warnings.warn("The 'warn' method is deprecated, " | |
> "use 'warning' instead", DeprecationWarning, 2) | |
E DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead | |
/sw/lib/python3.4/logging/__init__.py:1295: DeprecationWarning | |
----------------------------- Captured stdout call ----------------------------- | |
INFO: Staging files... [astroquery.alma.core] | |
___________________________ TestAlma.test_stage_data ___________________________ | |
self = <astroquery.alma.tests.test_alma_remote.TestAlma object at 0x1097873c8> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmpq_5eofvx' | |
def test_stage_data(self, temp_dir): | |
alma = Alma() | |
alma.cache_location = temp_dir | |
result_s = alma.query_object('Sgr A*') | |
assert b'2011.0.00217.S' in result_s['Project code'] | |
> assert b'uid://A002/X47ed8e/X3cd' in result_s['Asdm uid'] | |
E assert b'uid://A002/X47ed8e/X3cd' in <MaskedColumn name='Asdm uid' dtype='bytes32' description='UID of the ASDM containing this Field.' length=38>\n uid://A.../A002/X9dcf39/X256f\n uid://A002/X836a4d/X8a4\n uid://A002/X836a4d/X8a4\n uid://A002/X835491/X817\n uid://A002/X835491/X817 | |
astroquery/alma/tests/test_alma_remote.py:88: AssertionError | |
__________________________ TestAlma.test_doc_example ___________________________ | |
self = <astroquery.alma.tests.test_alma_remote.TestAlma object at 0x1097bd550> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmpwuh205f_' | |
def test_doc_example(self, temp_dir): | |
alma = Alma() | |
alma.cache_location = temp_dir | |
alma2 = Alma() | |
alma2.cache_location = temp_dir | |
m83_data = alma.query_object('M83') | |
# the order can apparently sometimes change | |
> assert set(m83_data.colnames) == set(all_colnames) | |
E assert set(['Asdm ui...ous id', ...]) == set(['Asdm uid...ration', ...]) | |
E Extra items in the left set: | |
E 'Group ous id' | |
E 'Pub' | |
E Extra items in the right set: | |
E 'QA0 Status' | |
E 'Project abstract' | |
E Use -v to get the full diff | |
astroquery/alma/tests/test_alma_remote.py:112: AssertionError | |
_____________________________ TestAlma.test_query ______________________________ | |
self = <astroquery.alma.tests.test_alma_remote.TestAlma object at 0x10aac5588> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmpjn02a49t' | |
def test_query(self, temp_dir): | |
alma = Alma() | |
alma.cache_location = temp_dir | |
result = alma.query(payload={'start_date': '<11-11-2011'}, | |
public=False, science=True) | |
# now 535? | |
> assert len(result) == 621 | |
E assert 159 == 621 | |
E + where 159 = len(<[UnicodeDecodeError("'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte") raised in repr()] Table object at 0x10aac5da0>) | |
astroquery/alma/tests/test_alma_remote.py:143: AssertionError | |
_____________________________ TestAlma.test_cycle1 _____________________________ | |
self = <astroquery.alma.tests.test_alma_remote.TestAlma object at 0x1099a3470> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmprkvqxe2h' | |
@pytest.mark.bigdata | |
def test_cycle1(self, temp_dir): | |
# About 500 MB | |
alma = Alma() | |
alma.cache_location = temp_dir | |
target = 'NGC4945' | |
project_code = '2012.1.00912.S' | |
payload = {'project_code': project_code, | |
'source_name_alma': target, } | |
result = alma.query(payload=payload) | |
assert len(result) == 1 | |
# Need new Alma() instances each time | |
a1 = alma() | |
uid_url_table_mous = a1.stage_data(result['Member ous id']) | |
a2 = alma() | |
uid_url_table_asdm = a2.stage_data(result['Asdm uid']) | |
# I believe the fixes as part of #495 have resulted in removal of a | |
# redundancy in the table creation, so a 1-row table is OK here. | |
# A 2-row table may not be OK any more, but that's what it used to | |
# be... | |
assert len(uid_url_table_asdm) == 1 | |
> assert len(uid_url_table_mous) == 2 | |
E assert 3 == 2 | |
E + where 3 = len(<Table length=3>\n URL ...rtal/requests/anonymous/1394383565/ALMA/uid___A002_X5ca961_X17f/2012.1.00912.S_uid___A002_X5ca961_X17f.asdm.sdm.tar ...) | |
astroquery/alma/tests/test_alma_remote.py:169: AssertionError | |
----------------------------- Captured stdout call ----------------------------- | |
INFO: Staging files... [astroquery.alma.core] | |
..INFO: Staging files... [astroquery.alma.core] | |
. | |
____________________________ test_make_finder_chart ____________________________ | |
@remote_data | |
@pytest.mark.skipif('not pyregion_OK') | |
def test_make_finder_chart(): | |
result = utils.make_finder_chart('Eta Carinae', 3 * u.arcmin, | |
> 'Eta Carinae') | |
astroquery/alma/tests/test_alma_utils.py:70: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/alma/utils.py:175: in make_finder_chart | |
**kwargs) | |
astroquery/alma/utils.py:215: in make_finder_chart_from_image | |
**kwargs) | |
astroquery/alma/utils.py:281: in make_finder_chart_from_image_and_catalog | |
log.info("The bands used include: {0}".format(used_bands)) | |
/Users/bsipocz/munka/devel/astropy/astropy/table/column.py:768: in __unicode__ | |
lines, outs = self._formatter._pformat_col(self) | |
/Users/bsipocz/munka/devel/astropy/astropy/table/pprint.py:224: in _pformat_col | |
col_strs = list(col_strs_iter) | |
/Users/bsipocz/munka/devel/astropy/astropy/table/pprint.py:392: in _pformat_col_iter | |
col_str = format_func(col_format, col[i]) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
format_ = None, val = b'\x90' | |
def default_format_func(format_, val): | |
if isinstance(val, bytes): | |
> return val.decode('utf-8') | |
E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 0: invalid start byte | |
/Users/bsipocz/munka/devel/astropy/astropy/table/pprint.py:24: UnicodeDecodeError | |
----------------------------- Captured stdout call ----------------------------- | |
INFO: Querying <bound method SkyViewClass.get_images of <astroquery.skyview.core.SkyViewClass object at 0x1093d6278>> for images [astroquery.alma.utils] | |
Downloading http://skyview.gsfc.nasa.gov/tempspace/fits/skv4400724484960.fits [Done] | |
INFO: Querying ALMA around Eta Carinae [astroquery.alma.utils] | |
____________________________ TestEso.test_SgrAstar _____________________________ | |
self = <astroquery.eso.tests.test_eso_remote.TestEso object at 0x10aa8c588> | |
temp_dir = '/var/folders/dc/hsm7tqpx2d57n7vb3k1l81xw0000gq/T/tmpg32_5nfd' | |
def test_SgrAstar(self, temp_dir): | |
eso = Eso() | |
eso.cache_location = temp_dir | |
instruments = eso.list_instruments(cache=False) | |
# in principle, we should run both of these tests | |
# result_i = eso.query_instrument('midi', target='Sgr A*') | |
# Equivalent, does not depend on SESAME: | |
result_i = eso.query_instrument('midi', coord1=266.41681662, | |
coord2=-29.00782497, cache=False) | |
> surveys = eso.list_surveys(cache=False) | |
astroquery/eso/tests/test_eso_remote.py:40: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.eso.core.EsoClass object at 0x10aa92fd0>, cache = False | |
def list_surveys(self, cache=True): | |
""" List all the available surveys (phase 3) in the ESO archive. | |
Returns | |
------- | |
survey_list : list of strings | |
cache : bool | |
Cache the response for faster subsequent retrieval | |
""" | |
if self._survey_list is None: | |
survey_list_response = self._request( | |
"GET", "http://archive.eso.org/wdb/wdb/adp/phase3_main/form", | |
cache=cache) | |
root = BeautifulSoup(survey_list_response.content, 'html5lib') | |
self._survey_list = [] | |
collections_table = root.find('table', id='collections_table') | |
other_collections = root.find('select', id='collection_name_option') | |
> for element in (collections_table.findAll('input', type='checkbox') + | |
other_collections.findAll('option')): | |
E AttributeError: 'NoneType' object has no attribute 'findAll' | |
astroquery/eso/core.py:272: AttributeError | |
__________________________ TestEso.test_empty_return ___________________________ | |
self = <astroquery.eso.tests.test_eso_remote.TestEso object at 0x10ba9d7f0> | |
def test_empty_return(self): | |
# test for empty return with an object from the North | |
eso = Eso() | |
> surveys = eso.list_surveys(cache=False) | |
astroquery/eso/tests/test_eso_remote.py:88: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <astroquery.eso.core.EsoClass object at 0x10bce7e80>, cache = False | |
def list_surveys(self, cache=True): | |
""" List all the available surveys (phase 3) in the ESO archive. | |
Returns | |
------- | |
survey_list : list of strings | |
cache : bool | |
Cache the response for faster subsequent retrieval | |
""" | |
if self._survey_list is None: | |
survey_list_response = self._request( | |
"GET", "http://archive.eso.org/wdb/wdb/adp/phase3_main/form", | |
cache=cache) | |
root = BeautifulSoup(survey_list_response.content, 'html5lib') | |
self._survey_list = [] | |
collections_table = root.find('table', id='collections_table') | |
other_collections = root.find('select', id='collection_name_option') | |
> for element in (collections_table.findAll('input', type='checkbox') + | |
other_collections.findAll('option')): | |
E AttributeError: 'NoneType' object has no attribute 'findAll' | |
astroquery/eso/core.py:272: AttributeError | |
_______________________ TestLcogt.test_query_object_meta _______________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x10aaabd68> | |
def test_query_object_meta(self): | |
> response = lcogt.core.Lcogt.query_object_async('M1', catalog='lco_img') | |
astroquery/lcogt/tests/test_lcogt_remote.py:25: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/lcogt/core.py:135: in query_object_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x1098f4208> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?outfmt=3&catalog=lco_img&objstr=M1&outrows=500 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x1098f4e80>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
_______________________ TestLcogt.test_query_object_phot _______________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x10bcafe10> | |
def test_query_object_phot(self): | |
> response = lcogt.core.Lcogt.query_object_async('M1', catalog='lco_cat') | |
astroquery/lcogt/tests/test_lcogt_remote.py:29: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/lcogt/core.py:135: in query_object_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10ae40390> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?outfmt=3&catalog=lco_cat&objstr=M1&outrows=500 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10ae404e0>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
____________________ TestLcogt.test_query_region_cone_async ____________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x109920208> | |
def test_query_region_cone_async(self): | |
response = lcogt.core.Lcogt.query_region_async( | |
> 'm31', catalog='lco_img', spatial='Cone', radius=2 * u.arcmin) | |
astroquery/lcogt/tests/test_lcogt_remote.py:34: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10ae648d0> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Cone&outrows=500&radunits=arcmin&objstr=m31&radius=2.0&outfmt=3&catalog=lco_img (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10ad6e320>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
_______________________ TestLcogt.test_query_region_cone _______________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x10bafb358> | |
def test_query_region_cone(self): | |
result = lcogt.core.Lcogt.query_region( | |
> 'm31', catalog='lco_img', spatial='Cone', radius=2 * u.arcmin) | |
astroquery/lcogt/tests/test_lcogt_remote.py:40: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/utils/class_or_instance.py:25: in f | |
return self.fn(obj, *args, **kwds) | |
astroquery/utils/process_asyncs.py:26: in newmethod | |
response = getattr(self, async_method_name)(*args, **kwargs) | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10bafba58> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Cone&outrows=500&radunits=arcmin&objstr=m31&radius=2.0&outfmt=3&catalog=lco_img (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x104403240>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
____________________ TestLcogt.test_query_region_box_async _____________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x1097c3550> | |
def test_query_region_box_async(self): | |
response = lcogt.core.Lcogt.query_region_async( | |
"00h42m44.330s +41d16m07.50s", catalog='lco_img', spatial='Box', | |
> width=2 * u.arcmin) | |
astroquery/lcogt/tests/test_lcogt_remote.py:46: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10bc01b70> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Box&outrows=500&size=120.0&outfmt=3&catalog=lco_img&objstr=10.684708333333331+%2B41.26875 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10bc011d0>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
_______________________ TestLcogt.test_query_region_box ________________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x1097884e0> | |
def test_query_region_box(self): | |
result = lcogt.core.Lcogt.query_region( | |
"00h42m44.330s +41d16m07.50s", catalog='lco_img', spatial='Box', | |
> width=2 * u.arcmin) | |
astroquery/lcogt/tests/test_lcogt_remote.py:52: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/utils/class_or_instance.py:25: in f | |
return self.fn(obj, *args, **kwds) | |
astroquery/utils/process_asyncs.py:26: in newmethod | |
response = getattr(self, async_method_name)(*args, **kwargs) | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10baf7e48> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Box&outrows=500&size=120.0&outfmt=3&catalog=lco_img&objstr=10.684708333333331+%2B41.26875 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10baf77f0>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
__________________ TestLcogt.test_query_region_async_polygon ___________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x109942d68> | |
def test_query_region_async_polygon(self): | |
polygon = [SkyCoord(ra=10.1, dec=10.1, unit=(u.deg, u.deg), | |
frame='icrs'), | |
SkyCoord(ra=10.0, dec=10.1, unit=(u.deg, u.deg), | |
frame='icrs'), | |
SkyCoord(ra=10.0, dec=10.0, unit=(u.deg, u.deg), | |
frame='icrs')] | |
response = lcogt.core.Lcogt.query_region_async( | |
> "m31", catalog="lco_img", spatial="Polygon", polygon=polygon) | |
astroquery/lcogt/tests/test_lcogt_remote.py:63: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10ad7be10> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Polygon&outrows=500&polygon=10.1+%2B10.1%2C10.0+%2B10.1%2C10.0+%2B10.0&outfmt=3&catalog=lco_img&objstr=m31 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x1098d73c8>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
_____________________ TestLcogt.test_query_region_polygon ______________________ | |
self = <astroquery.lcogt.tests.test_lcogt_remote.TestLcogt object at 0x10bb71d30> | |
def test_query_region_polygon(self): | |
polygon = [(10.1, 10.1), (10.0, 10.1), (10.0, 10.0)] | |
result = lcogt.core.Lcogt.query_region( | |
> "m31", catalog="lco_img", spatial="Polygon", polygon=polygon) | |
astroquery/lcogt/tests/test_lcogt_remote.py:69: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/utils/class_or_instance.py:25: in f | |
return self.fn(obj, *args, **kwds) | |
astroquery/utils/process_asyncs.py:26: in newmethod | |
response = getattr(self, async_method_name)(*args, **kwargs) | |
astroquery/lcogt/core.py:203: in query_region_async | |
cache=cache) | |
astroquery/query.py:188: in _request | |
auth=auth) | |
astroquery/query.py:60: in request | |
stream=stream, auth=auth) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:475: in request | |
resp = self.send(prep, **send_kwargs) | |
/sw/lib/python3.4/site-packages/requests/sessions.py:585: in send | |
r = adapter.send(request, **kwargs) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.adapters.HTTPAdapter object at 0x109018908> | |
request = <PreparedRequest [GET]>, stream = False | |
timeout = <requests.packages.urllib3.util.timeout.Timeout object at 0x10ad7b588> | |
verify = True, cert = None, proxies = OrderedDict() | |
def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): | |
"""Sends PreparedRequest object. Returns Response object. | |
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent. | |
:param stream: (optional) Whether to stream the request content. | |
:param timeout: (optional) How long to wait for the server to send | |
data before giving up, as a float, or a :ref:`(connect timeout, | |
read timeout) <timeouts>` tuple. | |
:type timeout: float or tuple | |
:param verify: (optional) Whether to verify SSL certificates. | |
:param cert: (optional) Any user-provided SSL certificate to be trusted. | |
:param proxies: (optional) The proxies dictionary to apply to the request. | |
""" | |
conn = self.get_connection(request.url, proxies) | |
self.cert_verify(conn, request.url, verify, cert) | |
url = self.request_url(request, proxies) | |
self.add_headers(request) | |
chunked = not (request.body is None or 'Content-Length' in request.headers) | |
if isinstance(timeout, tuple): | |
try: | |
connect, read = timeout | |
timeout = TimeoutSauce(connect=connect, read=read) | |
except ValueError as e: | |
# this may raise a string formatting error. | |
err = ("Invalid timeout {0}. Pass a (connect, read) " | |
"timeout tuple, or a single float to set " | |
"both timeouts to the same value".format(timeout)) | |
raise ValueError(err) | |
else: | |
timeout = TimeoutSauce(connect=timeout, read=timeout) | |
try: | |
if not chunked: | |
resp = conn.urlopen( | |
method=request.method, | |
url=url, | |
body=request.body, | |
headers=request.headers, | |
redirect=False, | |
assert_same_host=False, | |
preload_content=False, | |
decode_content=False, | |
retries=self.max_retries, | |
timeout=timeout | |
) | |
# Send the request. | |
else: | |
if hasattr(conn, 'proxy_pool'): | |
conn = conn.proxy_pool | |
low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) | |
try: | |
low_conn.putrequest(request.method, | |
url, | |
skip_accept_encoding=True) | |
for header, value in request.headers.items(): | |
low_conn.putheader(header, value) | |
low_conn.endheaders() | |
for i in request.body: | |
low_conn.send(hex(len(i))[2:].encode('utf-8')) | |
low_conn.send(b'\r\n') | |
low_conn.send(i) | |
low_conn.send(b'\r\n') | |
low_conn.send(b'0\r\n\r\n') | |
# Receive the response from the server | |
try: | |
# For Python 2.7+ versions, use buffering of HTTP | |
# responses | |
r = low_conn.getresponse(buffering=True) | |
except TypeError: | |
# For compatibility with Python 2.6 versions and back | |
r = low_conn.getresponse() | |
resp = HTTPResponse.from_httplib( | |
r, | |
pool=conn, | |
connection=low_conn, | |
preload_content=False, | |
decode_content=False | |
) | |
except: | |
# If we hit any problems here, clean up the connection. | |
# Then, reraise so that we can handle the actual exception. | |
low_conn.close() | |
raise | |
except (ProtocolError, socket.error) as err: | |
raise ConnectionError(err, request=request) | |
except MaxRetryError as e: | |
if isinstance(e.reason, ConnectTimeoutError): | |
# TODO: Remove this in 3.0.0: see #2811 | |
if not isinstance(e.reason, NewConnectionError): | |
raise ConnectTimeout(e, request=request) | |
if isinstance(e.reason, ResponseError): | |
raise RetryError(e, request=request) | |
if isinstance(e.reason, _ProxyError): | |
raise ProxyError(e, request=request) | |
> raise ConnectionError(e, request=request) | |
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='lcogtarchive.ipac.caltech.edu', port=80): Max retries exceeded with url: /cgi-bin/Gator/nph-query?spatial=Polygon&outrows=500&polygon=10.1+%2B10.1%2C10.0+%2B10.1%2C10.0+%2B10.0&outfmt=3&catalog=lco_img&objstr=m31 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10bb71c50>: Failed to establish a new connection: [Errno 61] Connection refused',)) | |
/sw/lib/python3.4/site-packages/requests/adapters.py:467: ConnectionError | |
_________________________________ test_simple __________________________________ | |
@remote_data | |
def test_simple(): | |
x = nasa_ads.ADS.query_simple( | |
> "^Persson Origin of water around deeply embedded low-mass protostars") | |
astroquery/nasa_ads/tests/test_nasaads.py:8: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery/utils/class_or_instance.py:25: in f | |
return self.fn(obj, *args, **kwds) | |
astroquery/nasa_ads/core.py:51: in query_simple | |
response.raise_for_status() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <Response [504]> | |
def raise_for_status(self): | |
"""Raises stored :class:`HTTPError`, if one occurred.""" | |
http_error_msg = '' | |
if 400 <= self.status_code < 500: | |
http_error_msg = '%s Client Error: %s for url: %s' % (self.status_code, self.reason, self.url) | |
elif 500 <= self.status_code < 600: | |
http_error_msg = '%s Server Error: %s for url: %s' % (self.status_code, self.reason, self.url) | |
if http_error_msg: | |
> raise HTTPError(http_error_msg, response=self) | |
E requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: http://adswww.harvard.edu/cgi-bin/basic_connect | |
/sw/lib/python3.4/site-packages/requests/models.py:844: HTTPError | |
____________ TestSkyviewRemote.test_survey[WMAP/COBE-survey_data0] _____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b32ffd0> | |
survey = 'WMAP/COBE' | |
survey_data = ['WMAP ILC', 'WMAP Ka', 'WMAP K', 'WMAP Q', 'WMAP V', 'WMAP W', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'WMAP/COBE' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
____________ TestSkyviewRemote.test_survey[SoftX-ray-survey_data1] _____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b507470> | |
survey = 'SoftX-ray' | |
survey_data = ['RASS-Cnt Soft', 'RASS-Cnt Hard', 'RASS-Cnt Broad', 'PSPC 2.0 Deg-Int', 'PSPC 1.0 Deg-Int', 'PSPC 0.6 Deg-Int', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True SoftX-ray | |
_____________ TestSkyviewRemote.test_survey[SwiftBAT-survey_data2] _____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b50d390> | |
survey = 'SwiftBAT' | |
survey_data = ['BAT SNR 14-195', 'BAT SNR 14-20', 'BAT SNR 20-24', 'BAT SNR 24-35', 'BAT SNR 35-50', 'BAT SNR 50-75', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'SwiftBAT' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
____________ TestSkyviewRemote.test_survey[HardX-ray-survey_data3] _____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b510908> | |
survey = 'HardX-ray' | |
survey_data = ['INT GAL 17-35 Flux', 'INT GAL 17-60 Flux', 'INT GAL 35-80 Flux', 'INTEGRAL/SPI GC', 'GRANAT/SIGMA', 'RXTE Allsky 3-8keV Flux', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True HardX-ray | |
___________ TestSkyviewRemote.test_survey[overlay_red-survey_data4] ____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b17d748> | |
survey = 'overlay_red' | |
survey_data = ['None \n Fermi 5Fermi 4Fermi 3Fermi 2Fermi 1EGRET (3D)EGRET <100 MeVEGRET >100 MeVCOMPTELINT GAL 17-35 FluxINT GAL 17...rschel 350GOODS: Herschel 500CDFS: LESSGOODS: VLA North\n', 'Fermi 5', 'Fermi 4', 'Fermi 3', 'Fermi 2', 'Fermi 1', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
False overlay_red | |
___________ TestSkyviewRemote.test_survey[Optical:SDSS-survey_data5] ___________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b50d940> | |
survey = 'Optical:SDSS' | |
survey_data = ['SDSSg', 'SDSSi', 'SDSSr', 'SDSSu', 'SDSSz', 'SDSSdr7g', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True Optical:SDSS | |
______________ TestSkyviewRemote.test_survey[Planck-survey_data6] ______________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b510e10> | |
survey = 'Planck' | |
survey_data = ['Planck 857', 'Planck 545', 'Planck 353', 'Planck 217', 'Planck 143', 'Planck 100', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'Planck' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
_____________ TestSkyviewRemote.test_survey[GammaRay-survey_data7] _____________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b50d780> | |
survey = 'GammaRay' | |
survey_data = ['Fermi 5', 'Fermi 4', 'Fermi 3', 'Fermi 2', 'Fermi 1', 'EGRET (3D)', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True GammaRay | |
_______________ TestSkyviewRemote.test_survey[IRAS-survey_data8] _______________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b5077f0> | |
survey = 'IRAS' | |
survey_data = ['IRIS 12', 'IRIS 25', 'IRIS 60', 'IRIS 100', 'SFD100m', 'SFD Dust Map', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'IRAS' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
______________ TestSkyviewRemote.test_survey[Radio-survey_data9] _______________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b510390> | |
survey = 'Radio' | |
survey_data = ['GB6 (4850MHz)', 'VLA FIRST (1.4 GHz)', 'NVSS', 'Stripe82VLA', '1420MHz (Bonn)', 'EBHIS', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
__________ TestSkyviewRemote.test_survey[overlay_green-survey_data10] __________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b51e860> | |
survey = 'overlay_green' | |
survey_data = ['None \n Fermi 5Fermi 4Fermi 3Fermi 2Fermi 1EGRET (3D)EGRET <100 MeVEGRET >100 MeVCOMPTELINT GAL 17-35 FluxINT GAL 17...rschel 350GOODS: Herschel 500CDFS: LESSGOODS: VLA North\n', 'Fermi 5', 'Fermi 4', 'Fermi 3', 'Fermi 2', 'Fermi 1', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
False overlay_green | |
__________ TestSkyviewRemote.test_survey[overlay_blue-survey_data11] ___________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b5075f8> | |
survey = 'overlay_blue' | |
survey_data = ['Fermi 5', 'Fermi 4', 'Fermi 3', 'Fermi 2', 'Fermi 1', 'EGRET (3D)', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
False overlay_blue | |
__________ TestSkyviewRemote.test_survey[DiffuseX-ray-survey_data12] ___________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b5102e8> | |
survey = 'DiffuseX-ray' | |
survey_data = ['RASS Background 1', 'RASS Background 2', 'RASS Background 3', 'RASS Background 4', 'RASS Background 5', 'RASS Background 6', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True DiffuseX-ray | |
___________ TestSkyviewRemote.test_survey[Optical:DSS-survey_data13] ___________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b507ac8> | |
survey = 'Optical:DSS' | |
survey_data = ['DSS', 'DSS1 Blue', 'DSS1 Red', 'DSS2 Red', 'DSS2 Blue', 'DSS2 IR'] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True Optical:DSS | |
_______________ TestSkyviewRemote.test_survey[UV-survey_data14] ________________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b510a90> | |
survey = 'UV' | |
survey_data = ['GALEX Near UV', 'GALEX Far UV', 'ROSAT WFC F1', 'ROSAT WFC F2', 'EUVE 83 A', 'EUVE 171 A', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True UV | |
__________ TestSkyviewRemote.test_survey[OtherOptical-survey_data15] ___________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b527208> | |
survey = 'OtherOptical' | |
survey_data = ['Mellinger Red', 'Mellinger Green', 'Mellinger Blue', 'NEAT', 'H-Alpha Comp', 'SHASSA H', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
> print("Canned reference return", self.__class__.survey_dict['Radio']) | |
E KeyError: 'Radio' | |
astroquery/skyview/tests/test_skyview_remote.py:41: KeyError | |
----------------------------- Captured stdout call ----------------------------- | |
True OtherOptical | |
_________ TestSkyviewRemote.test_survey[InfraredHighRes-survey_data16] _________ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b50df60> | |
survey = 'InfraredHighRes' | |
survey_data = ['2MASS-J', '2MASS-H', '2MASS-K', 'UKIDSS-Y', 'UKIDSS-J', 'UKIDSS-H', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'InfraredHighRes' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
___ TestSkyviewRemote.test_survey[GOODS/HDF/CDF(Allwavebands)-survey_data17] ___ | |
self = <astroquery.skyview.tests.test_skyview_remote.TestSkyviewRemote object at 0x10b510cc0> | |
survey = 'GOODS/HDF/CDF(Allwavebands)' | |
survey_data = ['GOODS: Chandra ACIS HB', 'GOODS: Chandra ACIS FB', 'GOODS: Chandra ACIS SB', 'GOODS: VLT VIMOS U', 'GOODS: VLT VIMOS R', 'GOODS: HST ACS B', ...] | |
@pytest.mark.parametrize(('survey', | |
'survey_data'), | |
zip(survey_dict.keys(), survey_dict.values())) | |
def test_survey(self, survey, survey_data): | |
> print(self.SkyView.survey_dict[survey] == survey_data, survey) | |
E KeyError: 'GOODS/HDF/CDF(Allwavebands)' | |
astroquery/skyview/tests/test_skyview_remote.py:40: KeyError | |
======== 35 failed, 674 passed, 2 skipped, 69 xfailed in 688.13 seconds ======== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment