#126933 Report by node Kuo-Linux-PC covering 2010 tests from 60 modules resulted into 19 errors
Report
- ObsPy version
- 1.3.0
- GitHub Pull Request
- -
- Report file
- JSON document
- Total runtime
- 108.4 sec
- Report date/time
- Aug. 13, 2022, 10:13 p.m.
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- Kuo-Linux-PC
- Processor
- x86_64
- Python Compiler
- GCC 10.3.0
- Python Implementation
- CPython
- Python Version
- 3.10.5
- Release
- 5.15.0-46-generic
- System
- Linux
- Version
- #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022
Dependencies
- cartopy
- 0.20.3
- decorator
- 5.1.1
- flake8
- ---
- geographiclib
- ---
- lxml
- 4.9.1
- matplotlib
- 3.5.2
- numpy
- 1.23.1
- obspy
- 1.3.0
- pyproj
- 3.3.1
- pytest
- 7.1.2
- pytest-json-report
- 1.5.0
- requests
- 2.28.1
- scipy
- 1.9.0
- setuptools
- 64.0.3
- shapefile
- ---
- sqlalchemy
- 1.4.40
Modules (60)
Module | Errors / Failures | Tracebacks | ||||
---|---|---|---|---|---|---|
obspy.clients.earthworm | Not tested | - | - | - | - | - |
obspy.clients.fdsn | - | 13 | 13 | - | 0.01s | - |
obspy.clients.filesystem | 1 | 29 | 29 | - | 0.74s | 1 |
obspy.clients.iris | Not tested | - | - | - | - | - |
obspy.clients.neic | Not tested | - | - | - | - | - |
obspy.clients.nrl | Not tested | - | - | - | - | - |
obspy.clients.seedlink | Not tested | - | - | - | - | - |
obspy.clients.seishub | Not tested | - | - | - | - | - |
obspy.clients.syngine | Not tested | - | - | - | - | - |
obspy.core | 9 | 595 | 594 | 1 | 57.68s | 2 3 4 5 6 7 8 9 10 |
obspy.core.event | - | 18 | 18 | - | 0.07s | - |
obspy.core.inventory | - | 23 | 23 | - | 0.46s | - |
obspy.core.util | - | 23 | 20 | 3 | 0.05s | - |
obspy.db | Not tested | - | - | - | - | - |
obspy.geodetics | - | 21 | 19 | 2 | 0.03s | - |
obspy.imaging | - | 88 | 87 | 1 | 7.97s | - |
obspy.io.ah | - | 5 | 5 | - | 0.03s | - |
obspy.io.arclink | - | 5 | 5 | - | 0.53s | - |
obspy.io.ascii | - | 28 | 26 | 2 | 0.06s | - |
obspy.io.cmtsolution | - | 10 | 10 | - | 0.02s | - |
obspy.io.cnv | - | 1 | 1 | - | 0.01s | - |
obspy.io.css | - | 10 | 10 | - | 0.05s | - |
obspy.io.dmx | - | 5 | 5 | - | 0.01s | - |
obspy.io.focmec | - | 8 | 8 | - | 0.03s | - |
obspy.io.gcf | - | 9 | 9 | - | 0.01s | - |
obspy.io.gse2 | - | 55 | 55 | - | 0.15s | - |
obspy.io.hypodd | - | 9 | 9 | - | 0.06s | - |
obspy.io.iaspei | - | 7 | 7 | - | 0.21s | - |
obspy.io.json | - | 4 | 4 | - | 0.01s | - |
obspy.io.kinemetrics | - | 8 | 8 | - | 0.16s | - |
obspy.io.kml | - | 3 | 3 | - | 0.05s | - |
obspy.io.mseed | - | 127 | 127 | - | 0.56s | - |
obspy.io.ndk | - | 20 | 20 | - | 0.10s | - |
obspy.io.nied | - | 11 | 11 | - | 0.02s | - |
obspy.io.nlloc | 9 | 13 | 13 | - | 5.08s | 11 12 13 14 15 16 17 18 19 |
obspy.io.nordic | - | 60 | 58 | 2 | 0.58s | - |
obspy.io.pdas | - | 3 | 3 | - | 0.00s | - |
obspy.io.pde | - | 13 | 12 | 1 | 0.09s | - |
obspy.io.quakeml | - | 38 | 37 | 1 | 0.19s | - |
obspy.io.reftek | - | 21 | 21 | - | 0.06s | - |
obspy.io.rg16 | - | 38 | 38 | - | 0.06s | - |
obspy.io.sac | - | 96 | 96 | - | 0.18s | - |
obspy.io.scardec | - | 5 | 5 | - | 0.02s | - |
obspy.io.seg2 | - | 2 | 2 | - | 0.01s | - |
obspy.io.segy | - | 56 | 56 | - | 0.16s | - |
obspy.io.seisan | - | 8 | 7 | 1 | 0.03s | - |
obspy.io.seiscomp | - | 49 | 49 | - | 0.68s | - |
obspy.io.sh | - | 26 | 24 | 2 | 0.13s | - |
obspy.io.shapefile | - | 7 | 7 | - | 0.14s | - |
obspy.io.stationtxt | - | 11 | 11 | - | 0.03s | - |
obspy.io.stationxml | - | 23 | 23 | - | 0.16s | - |
obspy.io.wav | - | 8 | 7 | 1 | 0.01s | - |
obspy.io.win | - | 2 | 2 | - | 0.03s | - |
obspy.io.xseed | - | 82 | 82 | - | 2.27s | - |
obspy.io.y | - | 5 | 4 | 1 | 0.01s | - |
obspy.io.zmap | - | 14 | 14 | - | 0.07s | - |
obspy.realtime | - | 22 | 22 | - | 0.10s | - |
obspy.scripts | - | 2 | 2 | - | 0.00s | - |
obspy.signal | - | 201 | 199 | 2 | 11.53s | - |
obspy.taup | - | 70 | 64 | 6 | 13.66s | - |
Summary | 19 | 2010 | 1984 | 26 | 108.43s | 19 |
Tracebacks (19)
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/clients/filesystem/tests/test_sds.py", line 223, in test_sds_report raise Exception Exception
2333 2334 .. rubric:: Example 2335 2336 >>> st = read() 2337 >>> print(st) # doctest: +ELLIPSIS 2338 3 Trace(s) in Stream: 2339 BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples 2340 BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples 2341 BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples 2342 >>> st.resample(10.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: ValueError('Unknown window type.') Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.resample[2]>", line 1, in <module> File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type. /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/stream.py:2342: UnexpectedException
1687 the signal is assumed to be periodic. 1688 1689 .. rubric:: Example 1690 1691 >>> tr = Trace(data=np.array([0.5, 0, 0.5, 1, 0.5, 0, 0.5, 1])) 1692 >>> len(tr) 1693 8 1694 >>> tr.stats.sampling_rate 1695 1.0 1696 >>> tr.resample(4.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: ValueError('Unknown window type.') Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.resample[3]>", line 1, in <module> File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type. /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py:1696: UnexpectedException
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_stream.py", line 2247, in test_method_chaining .resample(st[0].stats.sampling_rate / 2)\ File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 1640, in test_resample tr_2 = tr.copy().resample(sampling_rate=50.0) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 1678, in test_method_chaining .resample(tr.stats.sampling_rate / 2.0)\ File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 1845, in test_processing_information tr.resample(tr.stats.sampling_rate / 2.0) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 2119, in test_resample_new tr.resample(0.5, window='hanning', no_filter=True) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 2544, in test_dtype_is_not_unnecessarily_changed assert tr_int32.copy().resample(2.0).data.dtype == np.float64 File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2214, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2232, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/tests/test_trace.py", line 2717, in test_resample_short_traces tr.resample(30) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/scipy/signal/windows/_windows.py", line 2234, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
014 (https://www.gnu.org/copyleft/lesser.html) 015 016 Example 017 ------- 018 If NonLinLoc location run was performed using one of the standard projections 019 available in the NonLinLoc package, it is straightforward to read a NonLinLoc 020 Hypocenter-Phase file into an ObsPy :class:`~obspy.core.event.Catalog` object: 021 022 >>> from obspy import read_events 023 >>> cat = read_events("/path/to/nlloc.hyp") UNEXPECTED EXCEPTION: ValueError("time data '21Jun201312h53m34' does not match format '%d%b%Y%Hh%Mm%S'") Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nlloc[1]>", line 1, in <module> File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 809, in read_events return _generic_reader(pathname_or_url, _read, format=format, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 817, in _read catalog, format = _read_from_plugin('event', filename, format=format, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '21Jun201312h53m34' does not match format '%d%b%Y%Hh%Mm%S' /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/__init__.py:23: UnexpectedException
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 334, in test_issue_2222 cat = read_nlloc_hyp(str_io) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '21Jun201312h53m34' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 307, in test_read_nlloc_6_beta_signature cat = read_nlloc_hyp(filename) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '09May201711h00m22' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 85, in test_read_nlloc_hyp cat = read_nlloc_hyp(filename, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '17Oct201416h30m08' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 219, in test_read_nlloc_hyp_via_plugin cat = read_events(filename) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 809, in read_events return _generic_reader(pathname_or_url, _read, format=format, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 817, in _read catalog, format = _read_from_plugin('event', filename, format=format, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '17Oct201416h30m08' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 125, in test_read_nlloc_hyp_with_builtin_projection cat = read_nlloc_hyp(get_example_file("nlloc.hyp")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '21Jun201312h53m34' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 283, in test_read_nlloc_with_multiple_events got = read_events(get_example_file("vanua.sum.grid0.loc.hyp"), File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 809, in read_events return _generic_reader(pathname_or_url, _read, format=format, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 817, in _read catalog, format = _read_from_plugin('event', filename, format=format, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '28Jul201610h58m18' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 245, in test_read_nlloc_with_pick_seed_id_lookup cat = read_events(filename, format="NLLOC_HYP", inventory=inv) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 809, in read_events return _generic_reader(pathname_or_url, _read, format=format, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 817, in _read catalog, format = _read_from_plugin('event', filename, format=format, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '17Oct201416h30m08' does not match format '%d%b%Y%Hh%Mm%S'
Traceback (most recent call last): File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/tests/test_core.py", line 272, in test_read_nlloc_with_picks arrivals = read_events( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 809, in read_events return _generic_reader(pathname_or_url, _read, format=format, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 657, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/decorator.py", line 202, in uncompress_file result = func(filename, *args, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/event/catalog.py", line 817, in _read catalog, format = _read_from_plugin('event', filename, format=format, File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/util/base.py", line 422, in _read_from_plugin list_obj = read_format(filename, **kwargs) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 126, in read_nlloc_hyp event = _read_single_hypocenter( File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/io/nlloc/core.py", line 179, in _read_single_hypocenter creation_time = UTCDateTime.strptime(date + time, str("%d%b%Y%Hh%Mm%S")) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/core/utcdatetime.py", line 1299, in strptime return UTCDateTime(datetime.datetime.strptime(date_string, format)) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/home/linsong/anaconda3/envs/obspy/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '17Oct201416h30m08' does not match format '%d%b%Y%Hh%Mm%S'
Skipped tests (26)
Slowest tests (20)
Warnings (3)
Stage | Filename | Category | Message |
---|---|---|---|
runtest | /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/imaging/scripts/scan.py:419 | UserWarning | Glyph 26376 (\N{CJK UNIFIED IDEOGRAPH-6708}) missing from current font. |
runtest | /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/imaging/scripts/scan.py:431 | UserWarning | Glyph 26376 (\N{CJK UNIFIED IDEOGRAPH-6708}) missing from current font. |
runtest | /home/linsong/anaconda3/envs/obspy/lib/python3.10/site-packages/obspy/imaging/scripts/scan.py:433 | UserWarning | Glyph 26376 (\N{CJK UNIFIED IDEOGRAPH-6708}) missing from current font. |