#132321 Report by node gh-actions covering 1665 tests from 61 modules resulted into 44 errors
Report
- ObsPy version
- 1.3.0.post0+22.g2f0c8d6c1f
- GitHub Pull Request
- https://github.com/isas-yamamoto/obspy/pull/37
- Report file
- JSON document
- Total runtime
- 230.0 sec
- Report date/time
- Dec. 25, 2022, 10:08 p.m.
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- gh-actions
- Processor
- x86_64
- Python Compiler
- GCC 10.4.0
- Python Implementation
- CPython
- Python Version
- 3.10.8
- Release
- 5.15.0-1024-azure
- System
- Linux
- Version
- #30-Ubuntu SMP Wed Nov 16 23:37:59 UTC 2022
Dependencies
- cartopy
- 0.21.1
- decorator
- 5.1.1
- flake8
- ---
- geographiclib
- 2.0
- lxml
- 4.9.2
- matplotlib
- 3.6.2
- numpy
- 1.24.0
- obspy
- 1.3.0.post0+22.g2f0c8d6c1f
- pyproj
- 3.4.1
- pytest
- 7.2.0
- pytest-json-report
- 1.5.0
- requests
- 2.28.1
- scipy
- 1.9.3
- setuptools
- 65.6.3
- shapefile
- ---
- sqlalchemy
- 1.4.45
Modules (61)
Module | Errors / Failures | Tracebacks | ||||
---|---|---|---|---|---|---|
obspy.clients.earthworm | Not tested | - | - | - | - | - |
obspy.clients.fdsn | - | 13 | 13 | - | 0.04s | - |
obspy.clients.filesystem | - | 29 | 29 | - | 3.33s | - |
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 | 36 | 579 | 578 | 1 | 29.56s | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
obspy.core.event | - | 18 | 18 | - | 0.25s | - |
obspy.core.inventory | 1 | 23 | 23 | - | 1.71s | 20 |
obspy.core.util | 1 | 23 | 20 | 3 | 0.18s | 38 |
obspy.db | Not tested | - | - | - | - | - |
obspy.geodetics | - | 21 | 20 | 1 | 0.18s | - |
obspy.imaging | 2 | 82 | 81 | 1 | 22.37s | 39 40 |
obspy.io.ah | - | 5 | 5 | - | 0.13s | - |
obspy.io.alsep | 1 | 16 | 16 | - | 133.62s | 41 |
obspy.io.arclink | - | 5 | 5 | - | 2.44s | - |
obspy.io.ascii | - | 28 | 26 | 2 | 0.19s | - |
obspy.io.cmtsolution | - | 10 | 10 | - | 0.09s | - |
obspy.io.cnv | - | 1 | 1 | - | 0.02s | - |
obspy.io.css | - | 10 | 10 | - | 0.25s | - |
obspy.io.dmx | - | 5 | 5 | - | 0.04s | - |
obspy.io.focmec | - | 8 | 8 | - | 0.14s | - |
obspy.io.gcf | - | 9 | 9 | - | 0.05s | - |
obspy.io.gse2 | - | 55 | 55 | - | 0.67s | - |
obspy.io.hypodd | - | 9 | 9 | - | 0.23s | - |
obspy.io.iaspei | - | 7 | 7 | - | 1.05s | - |
obspy.io.json | - | 4 | 4 | - | 0.04s | - |
obspy.io.kinemetrics | - | 8 | 8 | - | 0.86s | - |
obspy.io.kml | 1 | 3 | 3 | - | 0.17s | 42 |
obspy.io.mseed | 2 | 127 | 127 | - | 1.95s | 43 44 |
obspy.io.ndk | - | 20 | 20 | - | 0.50s | - |
obspy.io.nied | - | 11 | 11 | - | 0.10s | - |
obspy.io.nlloc | - | 13 | 13 | - | 0.91s | - |
obspy.io.nordic | - | 60 | 58 | 2 | 2.36s | - |
obspy.io.pdas | - | 3 | 3 | - | 0.02s | - |
obspy.io.pde | - | 13 | 12 | 1 | 0.41s | - |
obspy.io.quakeml | - | 38 | 37 | 1 | 0.66s | - |
obspy.io.reftek | - | 21 | 21 | - | 0.27s | - |
obspy.io.rg16 | - | 38 | 38 | - | 0.22s | - |
obspy.io.sac | - | 96 | 96 | - | 0.67s | - |
obspy.io.scardec | - | 5 | 5 | - | 0.10s | - |
obspy.io.seg2 | - | 2 | 2 | - | 0.02s | - |
obspy.io.segy | - | 56 | 56 | - | 0.55s | - |
obspy.io.seisan | - | 8 | 7 | 1 | 0.11s | - |
obspy.io.seiscomp | - | 49 | 49 | - | 1.74s | - |
obspy.io.sh | - | 26 | 24 | 2 | 0.72s | - |
obspy.io.shapefile | - | 7 | 7 | - | 0.62s | - |
obspy.io.stationtxt | - | 11 | 11 | - | 0.11s | - |
obspy.io.stationxml | - | 23 | 23 | - | 0.56s | - |
obspy.io.wav | - | 8 | 7 | 1 | 0.05s | - |
obspy.io.win | - | 2 | 2 | - | 0.13s | - |
obspy.io.xseed | - | 23 | 23 | - | 0.26s | - |
obspy.io.y | - | 5 | 4 | 1 | 0.03s | - |
obspy.io.zmap | - | 14 | 14 | - | 0.28s | - |
obspy.realtime | - | 13 | 13 | - | 0.42s | - |
obspy.scripts | - | 2 | 2 | - | 2.12s | - |
obspy.signal | Not tested | - | - | - | - | - |
obspy.taup | Not tested | - | - | - | - | - |
Summary | 44 | 1665 | 1648 | 17 | 230.03s | 44 |
Tracebacks (44)
3475 3476 Rotate three explicitly specified channels to ZNE. 3477 3478 >>> from obspy import read, read_inventory 3479 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 3480 >>> inv = read_inventory("/path/to/ffbx.stationxml") 3481 >>> st._rotate_specific_channels_to_zne( UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream._rotate_specific_channels_to_zne[3]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3499, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:3481: UnexpectedException
3417 3418 Rotate all matching traces to ZNE, specifying sets of component codes. 3419 3420 >>> from obspy import read, read_inventory 3421 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 3422 >>> inv = read_inventory("/path/to/ffbx.stationxml") 3423 >>> st._rotate_to_zne(inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream._rotate_to_zne[3]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3469, in _rotate_to_zne self._rotate_specific_channels_to_zne( File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3499, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:3423: UnexpectedException
2401 the effect of the downsampling routine becomes clearer. 2402 2403 >>> from obspy import Trace, Stream 2404 >>> tr = Trace(data=np.arange(10)) 2405 >>> st = Stream(traces=[tr]) 2406 >>> tr.stats.sampling_rate 2407 1.0 2408 >>> tr.data 2409 array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) 2410 >>> st.decimate(4, strict_length=False, no_filter=True) UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.decimate[5]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2419, in decimate tr.decimate(factor, no_filter=no_filter, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1853, in decimate from obspy.signal.filter import integer_decimation File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2410: UnexpectedException
2198 2199 ``'remez_fir'`` (experimental) 2200 Minimax optimal bandpass using Remez algorithm (uses 2201 :func:`obspy.signal.filter.remez_fir`). 2202 2203 .. rubric:: Example 2204 2205 >>> from obspy import read 2206 >>> st = read() 2207 >>> st.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.filter[2]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2219, in filter tr.filter(type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1550, in filter func = _get_function_from_entry_point('filter', type) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2207: UnexpectedException
2558 a copy of your stream object. 2559 2560 >>> from obspy import read 2561 >>> st = read() 2562 >>> print(st) # doctest: +ELLIPSIS 2563 3 Trace(s) in Stream: 2564 BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2565 BW.RJOB..EHN | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2566 BW.RJOB..EHE | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2567 >>> st.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.interpolate[3]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2576, in interpolate tr.interpolate(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 2476, in interpolate func = _get_function_from_entry_point('interpolate', method) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2567: UnexpectedException
3142 Deconvolve instrument response for all Traces in Stream. 3143 3144 For details see the corresponding 3145 :meth:`~obspy.core.trace.Trace.remove_response` method of 3146 :class:`~obspy.core.trace.Trace`. 3147 3148 >>> from obspy import read, read_inventory 3149 >>> st = read() 3150 >>> inv = read_inventory() 3151 >>> st.remove_response(inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.remove_response[3]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3171, in remove_response tr.remove_response(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 2810, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:3151: UnexpectedException
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/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/stream.py:2342: UnexpectedException
2716 :param inventory: Inventory or SEED Parser with metadata of channels. 2717 2718 Example to rotate unaligned borehole instrument data based on station 2719 inventory (a dataless SEED :class:`~obspy.io.xseed.parser.Parser` can 2720 also be provided, see details for option ``inventory``): 2721 2722 >>> from obspy import read, read_inventory 2723 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 2724 >>> inv = read_inventory("/path/to/ffbx.stationxml") 2725 >>> st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.rotate[3]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2733, in rotate return self._rotate_to_zne(inventory, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3469, in _rotate_to_zne self._rotate_specific_channels_to_zne( File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3499, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2725: UnexpectedException
2111 raw data is not accessible anymore afterwards. To keep your 2112 original data, use :meth:`~obspy.core.stream.Stream.copy` to create 2113 a copy of your stream object. 2114 This also makes an entry with information on the applied processing 2115 in ``stats.processing`` of every trace. 2116 2117 .. rubric:: Example 2118 2119 >>> from obspy import read 2120 >>> from obspy.signal.invsim import corn_freq_2_paz UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.simulate[1]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2120: UnexpectedException
3230 :param npts_tol: Tolerate traces with different number of points 3231 with a difference up to this value. Surplus samples are discarded. 3232 :type time_tol: float 3233 :param time_tol: Tolerate difference, in seconds, in startime when 3234 setting the new starttime of the stack. If starttimes differs more 3235 than this value it will be set to timestamp 0. 3236 3237 >>> from obspy import read 3238 >>> st = read() 3239 >>> stack = st.stack() UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.stack[2]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 3251, in stack from obspy.signal.util import stack as stack_func File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:3239: UnexpectedException
2265 :func:`obspy.signal.trigger.carl_sta_trig`). 2266 2267 ``'zdetect'`` 2268 Z-detector (uses :func:`obspy.signal.trigger.z_detect`). 2269 2270 .. rubric:: Example 2271 2272 >>> from obspy import read 2273 >>> st = read() 2274 >>> st.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.trigger[2]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2219, in filter tr.filter(type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1550, in filter func = _get_function_from_entry_point('filter', type) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/stream.py:2274: UnexpectedException
1819 1820 For the example we switch off the automatic pre-filtering so that 1821 the effect of the downsampling routine becomes clearer: 1822 1823 >>> tr = Trace(data=np.arange(10)) 1824 >>> tr.stats.sampling_rate 1825 1.0 1826 >>> tr.data 1827 array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) 1828 >>> tr.decimate(4, strict_length=False, UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.decimate[3]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1853, in decimate from obspy.signal.filter import integer_decimation File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:1828: UnexpectedException
2012 samples between spline nodes. 2013 (uses :func:`obspy.signal.detrend.spline`). 2014 2015 .. rubric:: Example 2016 2017 Apply a third order spline detrend with 500 samples between nodes. 2018 2019 >>> from obspy import read 2020 >>> tr = read()[0] 2021 >>> tr.detrend("spline", order=3, dspline=500) UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.detrend[2]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 2027, in detrend func = _get_function_from_entry_point('detrend', type) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:2021: UnexpectedException
1527 ``'remez_fir'`` (experimental) 1528 Minimax optimal bandpass using Remez algorithm (uses 1529 :func:`obspy.signal.filter.remez_fir`). 1530 1531 .. rubric:: Example 1532 1533 >>> from obspy import read 1534 >>> st = read() 1535 >>> tr = st[0] 1536 >>> tr.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.filter[3]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1550, in filter func = _get_function_from_entry_point('filter', type) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:1536: UnexpectedException
2426 * New interpolation method ``lanczos``. 2427 2428 2429 .. rubric:: _`Usage Examples` 2430 2431 >>> from obspy import read 2432 >>> tr = read()[0] 2433 >>> print(tr) # doctest: +ELLIPSIS 2434 BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2435 >>> tr.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.interpolate[3]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 2476, in interpolate func = _get_function_from_entry_point('interpolate', method) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:2435: UnexpectedException
2710 `pitsasim=False` which influence very minor details in detrending 2711 and tapering). 2712 2713 .. rubric:: Example 2714 2715 >>> from obspy import read, read_inventory 2716 >>> st = read() 2717 >>> tr = st[0].copy() 2718 >>> inv = read_inventory() 2719 >>> tr.remove_response(inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.remove_response[4]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 2810, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:2719: 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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/trace.py:1696: UnexpectedException
1403 raw data is not accessible anymore afterwards. To keep your 1404 original data, use :meth:`~obspy.core.trace.Trace.copy` to create 1405 a copy of your trace object. 1406 This also makes an entry with information on the applied processing 1407 in ``stats.processing`` of this trace. 1408 1409 .. rubric:: Example 1410 1411 >>> from obspy import read 1412 >>> from obspy.signal.invsim import corn_freq_2_paz UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.simulate[1]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:1412: UnexpectedException
1603 1604 ``'zdetect'`` 1605 Z-detector (uses :func:`obspy.signal.trigger.z_detect`). 1606 1607 .. rubric:: Example 1608 1609 >>> from obspy import read 1610 >>> st = read() 1611 >>> tr = st[0] 1612 >>> tr.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.trigger[3]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 226, in raise_if_masked return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1550, in filter func = _get_function_from_entry_point('filter', type) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, File "/home/runner/work/obspy/obspy/obspy/core/util/misc.py", line 600, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 486, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/trace.py:1612: UnexpectedException
175 176 For more examples see the :ref:`Obspy Gallery <gallery>`. 177 178 Dealing with the Response information 179 ------------------------------------- 180 The :meth:`~obspy.core.inventory.response.Response.get_evalresp_response` 181 method will call some functions within evalresp to generate the response. 182 183 >>> response = cha.response 184 >>> response, freqs = response.get_evalresp_response(0.1, 16384, output="VEL") UNEXPECTED EXCEPTION: PendingDeprecationWarning('The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.') Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.inventory[25]>", line 1, in <module> File "/home/runner/work/obspy/obspy/obspy/core/inventory/response.py", line 1702, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( File "/home/runner/work/obspy/obspy/obspy/core/inventory/response.py", line 1647, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( File "/home/runner/work/obspy/obspy/obspy/core/inventory/response.py", line 1130, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/home/runner/work/obspy/obspy/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/home/runner/work/obspy/obspy/obspy/signal/spectral_estimation.py", line 39, in <module> from obspy.imaging.cm import obspy_sequential File "/home/runner/work/obspy/obspy/obspy/imaging/cm.py", line 299, in <module> obspy_divergent = get_cmap("RdBu_r") File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/inventory/__init__.py:184: UnexpectedException
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_event.py", line 120, in test_plot_farfield_without_quiver_with_maps ev.plot(kind=[['global'], ['ortho', 'beachball'], File "/home/runner/work/obspy/obspy/obspy/core/event/event.py", line 273, in plot plot_radiation_pattern( File "/home/runner/work/obspy/obspy/obspy/imaging/source.py", line 194, in plot_radiation_pattern _plot_beachball(ax, rtp_mt) File "/home/runner/work/obspy/obspy/obspy/imaging/source.py", line 376, in _plot_beachball cmap = get_cmap('bwr') File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_inventory.py", line 699, in test_location_plot_global inv.plot(method='cartopy', outfile=image_path) File "/home/runner/work/obspy/obspy/obspy/core/inventory/inventory.py", line 1031, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_inventory.py", line 707, in test_location_plot_ortho inv.plot(method='cartopy', projection='ortho', resolution='c', File "/home/runner/work/obspy/obspy/obspy/core/inventory/inventory.py", line 981, in plot cmap = get_cmap(name=colormap, lut=len(codes)) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_inventory.py", line 717, in test_location_plot_local inv.plot(method='cartopy', projection='local', resolution='50m', File "/home/runner/work/obspy/obspy/obspy/core/inventory/inventory.py", line 1031, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_inventory.py", line 729, in test_combined_station_event_plot cat.plot(outfile=image_path, fig=fig) File "/home/runner/work/obspy/obspy/obspy/core/event/catalog.py", line 759, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_network.py", line 324, in test_location_plot_global net.plot(method='cartopy', outfile=image_path) File "/home/runner/work/obspy/obspy/obspy/core/inventory/network.py", line 632, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_network.py", line 332, in test_location_plot_ortho net.plot(method='cartopy', projection='ortho', resolution='c', File "/home/runner/work/obspy/obspy/obspy/core/inventory/network.py", line 632, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_network.py", line 342, in test_location_plot_local net.plot(method='cartopy', projection='local', resolution='50m', File "/home/runner/work/obspy/obspy/obspy/core/inventory/network.py", line 632, in plot fig.savefig(outfile) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3274, in savefig self.canvas.print_figure(fname, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure result = print_method( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda> print_method = functools.wraps(meth)(lambda *args, **kwargs: meth( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper return func(*inner_args, **inner_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 517, in print_png self._print_pil(filename_or_obj, "png", pil_kwargs, metadata) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 463, in _print_pil FigureCanvasAgg.draw(self) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 405, in draw self.figure.draw(self.renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper result = draw(artist, renderer, *args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3071, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw return super().draw(renderer=renderer, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3107, in draw mimage._draw_list_compositing_images( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper return draw(artist, renderer) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 148, in draw extent = ax.get_extent(feature_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 770, in get_extent p = self._get_extent_geom(crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 815, in _get_extent_geom geom_in_crs = proj.project_geometry(geom_in_src_proj, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 808, in project_geometry return getattr(self, method_name)(geometry, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 951, in _project_polygon p_rings, p_mline = self._project_linear_ring(src_ring, src_crs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/crs.py", line 827, in _project_linear_ring multi_line_string = cartopy.trace.project_linear(linear_ring, File "lib/cartopy/trace.pyx", line 608, in cartopy.trace.project_linear File "lib/cartopy/trace.pyx", line 74, in cartopy.trace.shapely_from_geos File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/shapely/geometry/base.py", line 43, in geom_factory warn( DeprecationWarning: The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/core/tests/test_stream.py", line 1930, in test_read read('/path/to/UNKNOWN') File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 286, in _map_example_filename args[ind] = get_example_file(args[ind][9:]) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 208, in get_example_file mod = __import__("obspy.%s" % module, File "/home/runner/work/obspy/obspy/obspy/taup/__init__.py", line 447, in <module> from .tau import TauPyModel # NOQA File "/home/runner/work/obspy/obspy/obspy/taup/tau.py", line 25, in <module> cmap = get_cmap('Paired', lut=12) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_stream.py", line 2247, in test_method_chaining .resample(st[0].stats.sampling_rate / 2)\ File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 2351, in resample tr.resample(sampling_rate, window=window, File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_trace.py", line 1640, in test_resample tr_2 = tr.copy().resample(sampling_rate=50.0) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_trace.py", line 1678, in test_method_chaining .resample(tr.stats.sampling_rate / 2.0)\ File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_trace.py", line 1845, in test_processing_information tr.resample(tr.stats.sampling_rate / 2.0) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_trace.py", line 2119, in test_resample_new tr.resample(0.5, window='hanning', no_filter=True) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/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 "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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 "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_trace.py", line 2717, in test_resample_short_traces tr.resample(30) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 237, in skip_if_no_data return func(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/trace.py", line 1744, in resample large_w = np.fft.ifftshift(get_window(window, File "/usr/share/miniconda3/envs/test/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/runner/work/obspy/obspy/obspy/core/tests/test_waveform_plugins.py", line 220, in test_is_format assert len(paths) > 0, msg + '\n '.join(all_paths) AssertionError: Test data directories do not exist: /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/ah/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/alsep/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/alsep/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/alsep/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/css/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/dmx/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/gcf/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/gse2/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/gse2/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/kinemetrics/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/nied/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/mseed/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/css/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/pdas/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/core/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/sh/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/reftek/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/rg16/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/sac/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/sac/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/seg2/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/segy/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/seisan/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/sh/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/ascii/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/segy/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/ascii/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/wav/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/win/tests/data /usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/io/y/tests/data assert 0 > 0 + where 0 = len({})
192 193 :param filename: A test file name to which the path should be returned. 194 :return: Full path to file. 195 196 .. rubric:: Example 197 198 >>> get_example_file('slist.ascii') # doctest: +SKIP 199 /custom/path/to/obspy/io/ascii/tests/data/slist.ascii 200 201 >>> get_example_file('does.not.exists') # doctest: +ELLIPSIS Differences (unified diff with -expected +actual): @@ -1,3 +1,20 @@ Traceback (most recent call last): -... -OSError: Could not find file does.not.exists ... + File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run + exec(compile(example.source, filename, "single", + File "<doctest obspy.core.util.base.get_example_file[1]>", line 1, in <module> + get_example_file('does.not.exists') # doctest: +ELLIPSIS + File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 208, in get_example_file + mod = __import__("obspy.%s" % module, + File "/home/runner/work/obspy/obspy/obspy/taup/__init__.py", line 447, in <module> + from .tau import TauPyModel # NOQA + File "/home/runner/work/obspy/obspy/obspy/taup/tau.py", line 25, in <module> + cmap = get_cmap('Paired', lut=12) + File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper + emit_warning() + File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning + warn_deprecated( + File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated + warn_external(warning, category=MatplotlibDeprecationWarning) + File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external + warnings.warn(message, category, stacklevel) +PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead. /home/runner/work/obspy/obspy/obspy/core/util/base.py:201: DocTestFailure
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/imaging/tests/test_source.py", line 23, in test_farfield_with_quiver plot_radiation_pattern( File "/home/runner/work/obspy/obspy/obspy/imaging/source.py", line 194, in plot_radiation_pattern _plot_beachball(ax, rtp_mt) File "/home/runner/work/obspy/obspy/obspy/imaging/source.py", line 376, in _plot_beachball cmap = get_cmap('bwr') File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/imaging/tests/test_waveform.py", line 339, in test_plot_colored_section st.plot(outfile=image_path, type='section', color='channel') File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 1155, in plot return waveform.plot_waveform(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/imaging/waveform.py", line 271, in plot_waveform self.plot_section(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/imaging/waveform.py", line 1075, in plot_section self.__sect_init_traces() File "/home/runner/work/obspy/obspy/obspy/imaging/waveform.py", line 1241, in __sect_init_traces self.__sect_init_color() File "/home/runner/work/obspy/obspy/obspy/imaging/waveform.py", line 1282, in __sect_init_color cmap = get_cmap('Paired', lut=len(colors)) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
024 025 Reading 026 ------- 027 028 There are three types of ALSEP tape: PSE, WTN, and WTH. They are handled by 029 using ObsPy's standard:func:`~obspy.core.stream.read` function. The format is 030 detected automatically. 031 032 >>> from obspy import read 033 >>> st = read("http://darts.isas.jaxa.jp/pub/apollo/pse/p15s/pse.a15.1.2") UNEXPECTED EXCEPTION: ConnectTimeout(MaxRetryError("HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fcf9f0cbd30>, 'Connection to darts.isas.jaxa.jp timed out. (connect timeout=None)'))")) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection raise err File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 975, in send self.connect() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect conn = self._new_conn() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connection.py", line 179, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7fcf9f0cbd30>, 'Connection to darts.isas.jaxa.jp timed out. (connect timeout=None)') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fcf9f0cbd30>, 'Connection to darts.isas.jaxa.jp timed out. (connect timeout=None)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.10/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.alsep[1]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "/home/runner/work/obspy/obspy/obspy/core/util/decorator.py", line 291, in _map_example_filename return func(*args, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/stream.py", line 208, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 644, in _generic_reader download_to_file(url=pathname_or_url, filename_or_buffer=fh) File "/home/runner/work/obspy/obspy/obspy/core/util/base.py", line 593, in download_to_file r = requests.get(url, stream=True) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/requests/adapters.py", line 553, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fcf9f0cbd30>, 'Connection to darts.isas.jaxa.jp timed out. (connect timeout=None)')) /home/runner/work/obspy/obspy/obspy/io/alsep/__init__.py:33: UnexpectedException
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/io/kml/tests/test_kml.py", line 25, in test_write_inventory inv.write(tf.name, format="KML") File "/home/runner/work/obspy/obspy/obspy/core/inventory/inventory.py", line 372, in write return write_format(self, path_or_file_object, **kwargs) File "/home/runner/work/obspy/obspy/obspy/io/kml/core.py", line 289, in _write_kml kml_string = inventory_to_kml_string(obj, **kwargs) File "/home/runner/work/obspy/obspy/obspy/io/kml/core.py", line 65, in inventory_to_kml_string cmap = get_cmap(name=cmap, lut=len(inventory.networks)) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 199, in wrapper emit_warning() File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 193, in emit_warning warn_deprecated( File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 96, in warn_deprecated warn_external(warning, category=MatplotlibDeprecationWarning) File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/__init__.py", line 363, in warn_external warnings.warn(message, category, stacklevel) PendingDeprecationWarning: The get_cmap function will be deprecated in a future version. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 309, in test_get_flags _create_mseed_file( File "/home/runner/work/obspy/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 75, in _create_mseed_file arr[:flags[key][name]] = 1 << _i 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).
Traceback (most recent call last): File "/home/runner/work/obspy/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 433, in test_get_flags_from_files_and_file_like_objects _create_mseed_file( File "/home/runner/work/obspy/obspy/obspy/io/mseed/tests/test_mseed_util.py", line 75, in _create_mseed_file arr[:flags[key][name]] = 1 << _i 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).
Skipped tests (17)
Submodule | Test | Skip message |
---|---|---|
core | core/stream.py::obspy.core.stream._is_pickle | Skipped: all tests skipped by +SKIP option |
core.util | core/util/misc.py::obspy.core.util.misc.CatchOutput | Skipped: all tests skipped by +SKIP option |
core.util | core/util/misc.py::obspy.core.util.misc.SuppressOutput | Skipped: all tests skipped by +SKIP option |
core.util | core/util/misc.py::obspy.core.util.misc.TemporaryWorkingDirectory | Skipped: all tests skipped by +SKIP option |
geodetics | geodetics/tests/test_util_geodetics.py::TestUtilGeodetics::test_gps_2_dist_azimuth_bug150 | Skipped: Geographiclib installed, not using calc_vincenty_inverse |
imaging | imaging/tests/test_mopad_script.py::TestMopad::test_script_plot | Skipped: Currently broken until further review. |
io.ascii | io/ascii/core.py::obspy.io.ascii.core._is_slist | Skipped: all tests skipped by +SKIP option |
io.ascii | io/ascii/core.py::obspy.io.ascii.core._is_tspair | Skipped: all tests skipped by +SKIP option |
io.nordic | io/nordic/utils.py::obspy.io.nordic.utils._evmagtonor | Skipped: all tests skipped by +SKIP option |
io.nordic | io/nordic/utils.py::obspy.io.nordic.utils._nortoevmag | Skipped: all tests skipped by +SKIP option |
io.pde | io/pde/mchedr.py::obspy.io.pde.mchedr._is_mchedr | Skipped: all tests skipped by +SKIP option |
io.quakeml | io/quakeml/core.py::obspy.io.quakeml.core._is_quakeml | Skipped: all tests skipped by +SKIP option |
io.seisan | io/seisan/core.py::obspy.io.seisan.core._is_seisan | Skipped: all tests skipped by +SKIP option |
io.sh | io/sh/core.py::obspy.io.sh.core._is_asc | Skipped: all tests skipped by +SKIP option |
io.sh | io/sh/core.py::obspy.io.sh.core._is_q | Skipped: all tests skipped by +SKIP option |
io.wav | io/wav/core.py::obspy.io.wav.core._is_wav | Skipped: all tests skipped by +SKIP option |
io.y | io/y/core.py::obspy.io.y.core._is_y | Skipped: all tests skipped by +SKIP option |