#146076 Report by node e0d0edd8deee covering 2009 tests from 61 modules resulted into 30 errors
Report
- ObsPy version
- 1.2.2.post0+554.g8a8074be69
- GitHub Pull Request
- -
- Report file
- JSON document
- Total runtime
- 164.8 sec
- Report date/time
- Sept. 10, 2025, 7:02 p.m.
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- e0d0edd8deee
- Processor
- Python Compiler
- GCC 12.2.0
- Python Implementation
- CPython
- Python Version
- 3.9.23
- Release
- 5.4.143.bsk.8-amd64
- System
- Linux
- Version
- #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8 Wed Jul 20 08:43:36 UTC
Dependencies
- cartopy
- ---
- decorator
- 5.2.1
- flake8
- ---
- geographiclib
- ---
- lxml
- 6.0.1
- matplotlib
- 3.9.4
- numpy
- 1.26.4
- obspy
- 1.2.2.post0+554.g8a8074be69
- pyproj
- 3.6.1
- pytest
- 8.4.2
- pytest-json-report
- 1.5.0
- requests
- 2.32.5
- scipy
- 1.13.1
- setuptools
- 58.1.0
- shapefile
- ---
- sqlalchemy
- 1.4.49
Modules (61)
| Module | Errors / Failures | Tracebacks | ||||
|---|---|---|---|---|---|---|
| obspy.clients.arclink | Not tested | - | - | - | - | - |
| obspy.clients.earthworm | Not tested | - | - | - | - | - |
| obspy.clients.fdsn | - | 13 | 13 | - | 0.03s | - |
| obspy.clients.filesystem | - | 29 | 29 | - | 3.29s | - |
| 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 | 14 | 596 | 587 | 9 | 26.87s | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
| obspy.core.event | - | 18 | 18 | - | 0.25s | - |
| obspy.core.inventory | - | 23 | 23 | - | 1.89s | - |
| obspy.core.util | - | 23 | 20 | 3 | 0.17s | - |
| obspy.db | Not tested | - | - | - | - | - |
| obspy.geodetics | - | 21 | 19 | 2 | 0.18s | - |
| obspy.imaging | - | 88 | 87 | 1 | 23.94s | - |
| obspy.io.ah | - | 5 | 5 | - | 0.12s | - |
| obspy.io.arclink | - | 5 | 5 | - | 3.18s | - |
| obspy.io.ascii | - | 28 | 26 | 2 | 0.20s | - |
| obspy.io.cmtsolution | - | 10 | 10 | - | 0.10s | - |
| obspy.io.cnv | - | 1 | 1 | - | 0.02s | - |
| obspy.io.css | - | 10 | 10 | - | 0.25s | - |
| obspy.io.dmx | - | 5 | 5 | - | 0.03s | - |
| obspy.io.focmec | - | 8 | 8 | - | 0.14s | - |
| obspy.io.gcf | - | 9 | 9 | - | 0.04s | - |
| obspy.io.gse2 | - | 55 | 55 | - | 0.74s | - |
| obspy.io.hypodd | - | 9 | 9 | - | 0.25s | - |
| obspy.io.iaspei | - | 7 | 7 | - | 1.30s | - |
| obspy.io.json | - | 4 | 4 | - | 0.04s | - |
| obspy.io.kinemetrics | - | 8 | 8 | - | 0.79s | - |
| obspy.io.kml | - | 3 | 3 | - | 0.18s | - |
| obspy.io.mseed | - | 127 | 127 | - | 1.83s | - |
| obspy.io.ndk | - | 20 | 20 | - | 0.49s | - |
| obspy.io.nied | - | 11 | 11 | - | 0.09s | - |
| obspy.io.nlloc | - | 13 | 13 | - | 0.26s | - |
| obspy.io.nordic | - | 60 | 58 | 2 | 2.42s | - |
| obspy.io.pdas | - | 3 | 3 | - | 0.02s | - |
| obspy.io.pde | - | 13 | 12 | 1 | 0.41s | - |
| obspy.io.quakeml | - | 38 | 37 | 1 | 0.56s | - |
| obspy.io.reftek | - | 21 | 21 | - | 0.26s | - |
| obspy.io.rg16 | - | 38 | 38 | - | 0.20s | - |
| obspy.io.sac | - | 96 | 96 | - | 0.60s | - |
| obspy.io.scardec | - | 5 | 5 | - | 0.09s | - |
| obspy.io.seg2 | - | 2 | 2 | - | 0.02s | - |
| obspy.io.segy | - | 56 | 56 | - | 0.51s | - |
| obspy.io.seisan | - | 8 | 7 | 1 | 0.10s | - |
| obspy.io.seiscomp | - | 47 | 47 | - | 1.77s | - |
| obspy.io.sh | - | 26 | 24 | 2 | 0.62s | - |
| obspy.io.shapefile | - | 7 | 1 | 6 | 0.10s | - |
| obspy.io.stationtxt | - | 11 | 11 | - | 0.11s | - |
| obspy.io.stationxml | - | 23 | 23 | - | 0.58s | - |
| obspy.io.wav | - | 8 | 7 | 1 | 0.04s | - |
| obspy.io.win | - | 2 | 2 | - | 0.12s | - |
| obspy.io.xseed | - | 82 | 82 | - | 13.06s | - |
| obspy.io.y | - | 5 | 4 | 1 | 0.02s | - |
| obspy.io.zmap | - | 14 | 14 | - | 0.25s | - |
| obspy.realtime | - | 22 | 22 | - | 0.46s | - |
| obspy.scripts | - | 2 | 2 | - | 0.01s | - |
| obspy.signal | 16 | 201 | 198 | 3 | 24.35s | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
| obspy.taup | - | 70 | 64 | 6 | 34.42s | - |
| Summary | 30 | 2009 | 1968 | 41 | 164.81s | 30 |
Tracebacks (30)
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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/doctest.py", line 1334, in __run
exec(compile(example.source, filename, "single",
File "<doctest obspy.core.stream.Stream.resample[2]>", line 1, in <module>
File "/home/obspy/obspy/core/stream.py", line 2351, in resample
tr.resample(sampling_rate, window=window,
File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info
result = func(*args, **kwargs)
File "/home/obspy/obspy/core/trace.py", line 1744, in resample
large_w = np.fft.ifftshift(get_window(window,
File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window
raise ValueError("Unknown window type.") from e
ValueError: Unknown window type.
/home/obspy/obspy/core/stream.py:2342: UnexpectedException
Traceback (most recent call last): File "/home/obspy/obspy/core/inventory/response.py", line 2265, in _adjust_bode_plot_figure ax1.legend(loc="lower center", ncol=3, fontsize='small') File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_channel.py", line 32, in test_response_plot cha.plot(0.005, outfile=image_path) File "/home/obspy/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( File "/home/obspy/obspy/core/inventory/response.py", line 1904, in plot _adjust_bode_plot_figure(fig, show=False, File "/home/obspy/obspy/core/inventory/response.py", line 2267, in _adjust_bode_plot_figure leg_ = ax1.legend(loc="lower center", ncol=3) File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable
Traceback (most recent call last): File "/home/obspy/obspy/core/inventory/response.py", line 2265, in _adjust_bode_plot_figure ax1.legend(loc="lower center", ncol=3, fontsize='small') File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_response.py", line 121, in test_response_plot resp.plot(0.001, output="VEL", start_stage=1, end_stage=3, File "/home/obspy/obspy/core/inventory/response.py", line 1904, in plot _adjust_bode_plot_figure(fig, show=False, File "/home/obspy/obspy/core/inventory/response.py", line 2267, in _adjust_bode_plot_figure leg_ = ax1.legend(loc="lower center", ncol=3) File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable
Traceback (most recent call last): File "/home/obspy/obspy/core/inventory/response.py", line 2265, in _adjust_bode_plot_figure ax1.legend(loc="lower center", ncol=3, fontsize='small') File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_response.py", line 130, in test_response_plot_degrees resp.plot(0.001, output="VEL", start_stage=1, end_stage=3, File "/home/obspy/obspy/core/inventory/response.py", line 1904, in plot _adjust_bode_plot_figure(fig, show=False, File "/home/obspy/obspy/core/inventory/response.py", line 2267, in _adjust_bode_plot_figure leg_ = ax1.legend(loc="lower center", ncol=3) File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 341, in legend handles, labels, kwargs = mlegend._parse_legend_args([self], *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1364, in _parse_legend_args _api.warn_external( File "/usr/local/lib/python3.9/site-packages/matplotlib/_api/__init__.py", line 381, in warn_external warnings.warn(message, category, stacklevel) File "/home/obspy/obspy/core/util/testing.py", line 136, in _warn message=category(message), category=category, TypeError: 'NoneType' object is not callable
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_stream.py", line 2245, in test_method_chaining temp = st.trim(st[0].stats.starttime + 1, st[0].stats.starttime + 10)\ File "/home/obspy/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2458, in resolve return functools.reduce(getattr, self.attrs, module) AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 1359, in test_taper_onesided tr.taper(max_percentage=None, side="left") File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/home/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/obspy/obspy/core/util/misc.py", line 617, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 474, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2846, in load_entry_point return ep.load() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2450, in load return self.resolve() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2460, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2458, in resolve return functools.reduce(getattr, self.attrs, module) AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 1389, in test_taper_length tr.taper(max_percentage=0.7, max_length=int(npts / 2) + 1) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/home/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/obspy/obspy/core/util/misc.py", line 617, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 474, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2846, in load_entry_point return ep.load() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2450, in load return self.resolve() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2460, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 1640, in test_resample tr_2 = tr.copy().resample(sampling_rate=50.0) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 1667, in test_method_chaining temp_tr = tr.trim(tr.stats.starttime + 1)\ File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 1845, in test_processing_information tr.resample(tr.stats.sampling_rate / 2.0) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 2119, in test_resample_new tr.resample(0.5, window='hanning', no_filter=True) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2458, in resolve return functools.reduce(getattr, self.attrs, module) AttributeError: module 'scipy.signal' has no attribute 'hann' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 2492, in test_dtype_is_not_unnecessarily_changed assert tr_int32.copy().taper(0.05, "hann").data.dtype == np.float64 File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 2147, in taper func = _get_function_from_entry_point('taper', type) File "/home/obspy/obspy/core/util/base.py", line 330, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/obspy/obspy/core/util/misc.py", line 617, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 474, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2846, in load_entry_point return ep.load() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2450, in load return self.resolve() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2460, in resolve raise ImportError(str(exc)) from exc ImportError: module 'scipy.signal' has no attribute 'hann'
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 344, in from_call result: TResult | None = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 246, in <lambda> lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/logging.py", line 850, in pytest_runtest_call yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/capture.py", line 900, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper return result.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 103, in get_result raise exc.with_traceback(tb) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper res = yield File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 139, in _multicall teardown.throw(exception) File "/usr/local/lib/python3.9/site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call return (yield) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 178, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1671, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 512, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 167, in _multicall raise exception File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 121, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call result = testfunction(**testargs) File "/home/obspy/obspy/core/tests/test_trace.py", line 2717, in test_resample_short_traces tr.resample(30) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun return caller(func, *(extras + args), **kw) File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2344, 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 "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2362, 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 "/usr/local/lib/python3.9/doctest.py", line 1334, in __run
exec(compile(example.source, filename, "single",
File "<doctest obspy.core.trace.Trace.resample[3]>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/home/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/home/obspy/obspy/core/trace.py", line 282, in _add_processing_info
result = func(*args, **kwargs)
File "/home/obspy/obspy/core/trace.py", line 1744, in resample
large_w = np.fft.ifftshift(get_window(window,
File "/usr/local/lib/python3.9/site-packages/scipy/signal/windows/_windows.py", line 2364, in get_window
raise ValueError("Unknown window type.") from e
ValueError: Unknown window type.
/home/obspy/obspy/core/trace.py:1696: UnexpectedException
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_cpxtrace.py", line 85, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_cpxtrace.py", line 85, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_cpxtrace.py", line 85, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_cpxtrace.py", line 85, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_freqattributes.py", line 88, in setUp util.enframe(self.data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_hoctavbands.py", line 87, in setUp util.enframe(data, signal.hamming(self.n), self.inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Traceback (most recent call last): File "/usr/local/lib/python3.9/unittest/case.py", line 59, in testPartExecutor yield File "/usr/local/lib/python3.9/unittest/case.py", line 588, in run self._callSetUp() File "/usr/local/lib/python3.9/unittest/case.py", line 547, in _callSetUp self.setUp() File "/home/obspy/obspy/signal/tests/test_polarization.py", line 60, in setUp util.enframe(data_z, signal.hamming(n), inc) AttributeError: module 'scipy.signal' has no attribute 'hamming'
Skipped tests (41)
Slowest tests (20)
Warnings (57)
| Stage | Filename | Category | Message |
|---|---|---|---|
| runtest | /home/obspy/obspy/core/event/resourceid.py:622 | UserWarning | overwritting the id attribute of a ResourceIdentifierobject is very dangerous and will raise an exception in a future version of obspy |
| runtest | /home/obspy/obspy/signal/array_analysis.py:833 | DeprecationWarning | 'scipy.integrate.cumtrapz' is deprecated in favour of 'scipy.integrate.cumulative_trapezoid' and will be removed in SciPy 1.14.0 |
| runtest | /home/obspy/obspy/signal/tf_misfit.py:1344 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/signal/invsim.py:375 | DeprecationWarning | Please import `zpk2tf` from the `scipy.signal` namespace; the `scipy.signal.ltisys` namespace is deprecated and will be removed in SciPy 2.0.0. |
| collect | /home/obspy/obspy/clients/filesystem/db.py:18 | MovedIn20Warning | Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) |
| runtest | /home/obspy/obspy/taup/taup_geo.py:91 | DeprecationWarning | `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. |
| runtest | /home/obspy/obspy/taup/tau_branch.py:262 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/io/kml/core.py:65 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| collect | /home/obspy/obspy/taup/tau.py:25 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/obspy/obspy/io/seiscomp/inventory.py:514 | UserWarning | Something went hopelessly wrong, found sampling-rate of 0! |
| runtest | <doctest obspy.core.event.resourceid.ResourceIdentifier[37]>:1 | ObsPyDeprecationWarning | Converts the current ID to a valid QuakeML URI. This method is deprecated, use :meth:`get_quakeml_id` instead. Only an invalid QuakeML ResourceIdentifier string it will be converted to a valid one. Otherwise nothing will happen but after calling this method the user can be sure that the ID is a valid QuakeML URI. The resulting ID will be of the form smi:authority_id/prefix/resource_id :type authority_id: str, optional :param authority_id: The base url of the resulting string. Defaults to ``"local"``. |
| runtest | /home/obspy/obspy/io/sac/tests/test_sactrace.py:187 | DeprecationWarning | `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. |
| runtest | /home/obspy/obspy/imaging/scripts/mopad.py:840 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/imaging/source.py:196 | UserWarning | Tight layout not applied. The left and right margins cannot be made large enough to accommodate all Axes decorations. |
| runtest | /home/obspy/obspy/taup/tau_branch.py:388 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| collect | /home/obspy/obspy/signal/invsim.py:375 | DeprecationWarning | Please import `zpk2tf` from the `scipy.signal` namespace; the `scipy.signal.ltisys` namespace is deprecated and will be removed in SciPy 2.0.0. |
| runtest | /home/obspy/obspy/taup/seismic_phase.py:1438 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/io/seiscomp/inventory.py:496 | UserWarning | Clock drift division by sample rate of 0: using sec/sample |
| runtest | /home/obspy/obspy/taup/tau_branch.py:489 | UserWarning | Resizing a TauP array inplace failed due to the existence of other references to the array, creating a new array. See Obspy #2280. |
| runtest | /home/obspy/obspy/taup/slowness_model.py:1813 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:260 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:261 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/seismic_phase.py:1465 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/imaging/source.py:375 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/obspy/obspy/core/event/resourceid.py:348 | UserWarning | The object with identity of: 140510868470896 and id of smi:local/1327e26f-17dd-467b-ab28-b22b0f325db2 no longer exists, trying to find an object with the same id |
| runtest | /home/obspy/obspy/taup/tau_branch.py:386 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/core/utcdatetime.py:1084 | ObsPyDeprecationWarning | Comparing UTCDateTime objects of different precision is not defined will raise an Exception in a future version of obspy |
| runtest | /home/obspy/obspy/taup/tau_branch.py:297 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/io/mseed/tests/test_mseed_util.py:75 | DeprecationWarning | NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 128 to int8 will fail in the future. For the old behavior, usually: np.array(value).astype(dtype) will give the desired result (the cast overflows). |
| runtest | /home/obspy/obspy/core/event/resourceid.py:348 | UserWarning | The object with identity of: 140510868541248 and id of obspy.org/tests/test_resource_doc_example no longer exists, trying to find an object with the same id |
| runtest | /home/obspy/obspy/taup/tau_branch.py:415 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:387 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/io/nordic/utils.py:184 | UserWarning | Lines of type I have not been implemented yet, please submit a development request |
| collect | /home/obspy/obspy/imaging/maps.py:34 | UserWarning | Cartopy not installed, map plots will not work. |
| runtest | /home/obspy/obspy/taup/tau_branch.py:283 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| collect | /home/obspy/obspy/imaging/cm.py:299 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/obspy/obspy/signal/differentiate_and_integrate.py:27 | DeprecationWarning | 'scipy.integrate.cumtrapz' is deprecated in favour of 'scipy.integrate.cumulative_trapezoid' and will be removed in SciPy 1.14.0 |
| runtest | /home/obspy/obspy/signal/spectral_estimation.py:2045 | UserWarning | Attempt to set non-positive xlim on a log-scaled axis will be ignored. |
| runtest | /home/obspy/obspy/core/event/resourceid.py:348 | UserWarning | The object with identity of: 140510868539664 and id of obspy.org/tests/test_resource_doc_example no longer exists, trying to find an object with the same id |
| runtest | /home/obspy/obspy/imaging/source.py:338 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| collect | /home/obspy/obspy/imaging/cm.py:300 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/obspy/obspy/imaging/source.py:331 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| collect | /home/obspy/obspy/clients/arclink/__init__.py:34 | ObsPyDeprecationWarning | ArcLink protocol has been officially deprecated and some main servers have been shut down already. Please consider using other methods like FDSN web services to fetch data. ArcLink functionality is now untested in ObsPy. |
| runtest | /home/obspy/obspy/io/sac/sactrace.py:1543 | DeprecationWarning | `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. |
| runtest | /usr/local/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py:70 | PendingDeprecationWarning | the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. |
| runtest | /home/obspy/obspy/signal/spectral_estimation.py:1544 | UserWarning | 4/4 segments omitted in file '/tmp/obspy-9ybay96o.npz' (time ranges already covered). |
| runtest | /home/obspy/obspy/imaging/waveform.py:1282 | MatplotlibDeprecationWarning | The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead. |
| runtest | /home/obspy/obspy/taup/tau_branch.py:298 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:416 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:281 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /usr/local/lib/python3.9/site-packages/_pytest/python.py:157 | DeprecationWarning | `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. |
| runtest | /home/obspy/obspy/signal/tf_misfit.py:1084 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/imaging/beachball.py:245 | RuntimeWarning | More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`. |
| runtest | /home/obspy/obspy/taup/tau_branch.py:417 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:296 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/taup/tau_branch.py:282 | DeprecationWarning | Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) |
| runtest | /home/obspy/obspy/signal/spectral_estimation.py:2045 | UserWarning | Attempting to set identical low and high xlims makes transformation singular; automatically expanding. |