024
025 Reading
026 -------
027
028 There are three types of ALSEP tape: PSE, WTN, and WTH. They are handled by
029 using ObsPy's standard:func:`~obspy.core.stream.read` function. The format is
030 detected automatically.
031
032 >>> from obspy import read
033 >>> st = read("http://darts.isas.jaxa.jp/pub/apollo/pse/p15s/pse.a15.1.2")
UNEXPECTED EXCEPTION: ConnectionError(MaxRetryError("HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3d6dabd790>: Failed to establish a new connection: [Errno 110] Connection timed out'))"))
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/share/miniconda3/envs/test/lib/python3.7/http/client.py", line 1281, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.7/http/client.py", line 1327, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.7/http/client.py", line 1276, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.7/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/share/miniconda3/envs/test/lib/python3.7/http/client.py", line 976, in send
self.connect()
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3d6dabd790>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/adapters.py", line 499, in send
timeout=timeout,
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3d6dabd790>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.7/doctest.py", line 1337, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.alsep[1]>", line 1, in <module>
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 644, in _generic_reader
download_to_file(url=pathname_or_url, filename_or_buffer=fh)
File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 593, in download_to_file
r = requests.get(url, stream=True)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.7/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3d6dabd790>: Failed to establish a new connection: [Errno 110] Connection timed out'))
/home/runner/work/obspy/obspy/obspy/io/alsep/__init__.py:33: UnexpectedException