#130530 Report by node gh-actions covering 1768 tests from 59 modules resulted into 60 errors
Report
- ObsPy version
- 1.0.1.post0+5566.g94a31d2078.…
- GitHub Pull Request
- -
- Report file
- JSON document
- Total runtime
- 148.6 sec
- Report date/time
- Nov. 16, 2022, 4:51 a.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.11.0
- Release
- 5.15.0-1022-azure
- System
- Linux
- Version
- #27~20.04.1-Ubuntu SMP Mon Oct 17 02:03:50 UTC 2022
Dependencies
- cartopy
- ---
- decorator
- 5.1.1
- flake8
- ---
- geographiclib
- ---
- lxml
- 4.9.1
- matplotlib
- 3.6.2
- numpy
- 1.23.4
- obspy
- 1.0.1.post0+5566.g94a31d2078.fmassin.master
- pyproj
- ---
- pytest
- 7.2.0
- pytest-json-report
- 1.5.0
- requests
- 2.28.1
- scipy
- 1.9.3
- setuptools
- 65.5.1
- shapefile
- ---
- sqlalchemy
- 1.4.44
Modules (59)
Module | Errors / Failures | Tracebacks | ||||
---|---|---|---|---|---|---|
obspy.clients.earthworm | Not tested | - | - | - | - | - |
obspy.clients.fdsn | - | 13 | 13 | - | 0.04s | - |
obspy.clients.filesystem | - | 29 | 29 | - | 3.51s | - |
obspy.clients.iris | Not tested | - | - | - | - | - |
obspy.clients.neic | Not tested | - | - | - | - | - |
obspy.clients.nrl | 1 | 5 | 5 | - | 0.31s | 1 |
obspy.clients.seedlink | Not tested | - | - | - | - | - |
obspy.clients.syngine | Not tested | - | - | - | - | - |
obspy.core | 54 | 581 | 572 | 9 | 18.80s | 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
obspy.core.event | - | 18 | 18 | - | 0.27s | - |
obspy.core.inventory | 1 | 23 | 23 | - | 1.85s | 19 |
obspy.core.util | 2 | 23 | 20 | 3 | 0.21s | 57 58 |
obspy.geodetics | - | 21 | 19 | 2 | 0.18s | - |
obspy.imaging | 1 | 88 | 87 | 1 | 25.93s | 59 |
obspy.io.ah | - | 11 | 11 | - | 0.19s | - |
obspy.io.alsep | - | 16 | 16 | - | 2.48s | - |
obspy.io.arclink | - | 5 | 5 | - | 2.53s | - |
obspy.io.ascii | - | 28 | 26 | 2 | 0.20s | - |
obspy.io.cmtsolution | - | 10 | 10 | - | 0.10s | - |
obspy.io.cnv | - | 1 | 1 | - | 0.03s | - |
obspy.io.css | - | 10 | 10 | - | 0.27s | - |
obspy.io.dmx | - | 5 | 5 | - | 0.04s | - |
obspy.io.focmec | - | 8 | 8 | - | 0.15s | - |
obspy.io.gcf | - | 13 | 12 | 1 | 0.27s | - |
obspy.io.gse2 | - | 55 | 55 | - | 0.74s | - |
obspy.io.hypodd | - | 9 | 9 | - | 0.25s | - |
obspy.io.iaspei | - | 7 | 7 | - | 1.11s | - |
obspy.io.json | - | 4 | 4 | - | 0.05s | - |
obspy.io.kinemetrics | - | 8 | 8 | - | 0.80s | - |
obspy.io.kml | - | 3 | 3 | - | 0.19s | - |
obspy.io.mseed | - | 127 | 127 | - | 2.24s | - |
obspy.io.ndk | - | 20 | 20 | - | 0.51s | - |
obspy.io.nied | - | 11 | 11 | - | 0.09s | - |
obspy.io.nlloc | - | 13 | 12 | 1 | 0.24s | - |
obspy.io.nordic | - | 60 | 58 | 2 | 2.38s | - |
obspy.io.pdas | - | 3 | 3 | - | 0.02s | - |
obspy.io.pde | - | 13 | 12 | 1 | 0.43s | - |
obspy.io.quakeml | - | 38 | 37 | 1 | 0.70s | - |
obspy.io.reftek | - | 21 | 21 | - | 0.27s | - |
obspy.io.rg16 | - | 38 | 38 | - | 0.24s | - |
obspy.io.sac | 1 | 99 | 99 | - | 0.88s | 60 |
obspy.io.scardec | - | 5 | 5 | - | 0.10s | - |
obspy.io.seg2 | - | 2 | 2 | - | 0.02s | - |
obspy.io.segy | - | 56 | 56 | - | 0.75s | - |
obspy.io.seisan | - | 8 | 7 | 1 | 0.11s | - |
obspy.io.seiscomp | - | 49 | 49 | - | 1.85s | - |
obspy.io.sh | - | 26 | 24 | 2 | 0.60s | - |
obspy.io.shapefile | - | 7 | 1 | 6 | 0.10s | - |
obspy.io.stationtxt | - | 11 | 11 | - | 0.11s | - |
obspy.io.stationxml | - | 24 | 24 | - | 0.60s | - |
obspy.io.wav | - | 8 | 7 | 1 | 0.05s | - |
obspy.io.win | - | 2 | 2 | - | 0.12s | - |
obspy.io.xseed | - | 23 | 23 | - | 0.27s | - |
obspy.io.y | - | 5 | 4 | 1 | 0.02s | - |
obspy.io.zmap | - | 14 | 14 | - | 0.29s | - |
obspy.realtime | - | 13 | 13 | - | 0.40s | - |
obspy.scripts | - | 2 | 2 | - | 0.01s | - |
obspy.signal | Not tested | - | - | - | - | - |
obspy.taup | - | 76 | 70 | 6 | 52.25s | - |
Summary | 60 | 1768 | 1728 | 40 | 148.61s | 60 |
Tracebacks (60)
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/clients/nrl/tests/test_nrl.py", line 53, in test_get_response resp = self.nrl_local.get_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/clients/nrl/client.py", line 264, in get_response dl_resp.recalculate_overall_sensitivity() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1040, in recalculate_overall_sensitivity freq, gain = self._get_overall_sensitivity_and_gain( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1081, in _get_overall_sensitivity_and_gain response_at_frequency = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
3538 3539 Rotate three explicitly specified channels to ZNE. 3540 3541 >>> from obspy import read, read_inventory 3542 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 3543 >>> inv = read_inventory("/path/to/ffbx.stationxml") 3544 >>> st._rotate_specific_channels_to_zne( UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3562, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:3544: UnexpectedException
3480 3481 Rotate all matching traces to ZNE, specifying sets of component codes. 3482 3483 >>> from obspy import read, read_inventory 3484 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 3485 >>> inv = read_inventory("/path/to/ffbx.stationxml") 3486 >>> st._rotate_to_zne(inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3532, in _rotate_to_zne self._rotate_specific_channels_to_zne( File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3562, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:3486: UnexpectedException
2425 the effect of the downsampling routine becomes clearer. 2426 2427 >>> from obspy import Trace, Stream 2428 >>> tr = Trace(data=np.arange(10)) 2429 >>> st = Stream(traces=[tr]) 2430 >>> tr.stats.sampling_rate 2431 1.0 2432 >>> tr.data 2433 array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) 2434 >>> st.decimate(4, strict_length=False, no_filter=True) UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2443, in decimate tr.decimate(factor, no_filter=no_filter, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1854, in decimate from obspy.signal.filter import integer_decimation File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2434: UnexpectedException
2222 2223 ``'remez_fir'`` (experimental) 2224 Minimax optimal bandpass using Remez algorithm (uses 2225 :func:`obspy.signal.filter.remez_fir`). 2226 2227 .. rubric:: Example 2228 2229 >>> from obspy import read 2230 >>> st = read() 2231 >>> st.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2243, in filter tr.filter(type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2231: UnexpectedException
2582 a copy of your stream object. 2583 2584 >>> from obspy import read 2585 >>> st = read() 2586 >>> print(st) # doctest: +ELLIPSIS 2587 3 Trace(s) in Stream: 2588 BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2589 BW.RJOB..EHN | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2590 BW.RJOB..EHE | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2591 >>> st.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2600, in interpolate tr.interpolate(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2482, in interpolate func = _get_function_from_entry_point('interpolate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2591: UnexpectedException
3205 Deconvolve instrument response for all Traces in Stream. 3206 3207 For details see the corresponding 3208 :meth:`~obspy.core.trace.Trace.remove_response` method of 3209 :class:`~obspy.core.trace.Trace`. 3210 3211 >>> from obspy import read, read_inventory 3212 >>> st = read() 3213 >>> inv = read_inventory() 3214 >>> st.remove_response(inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3234, in remove_response tr.remove_response(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:3214: UnexpectedException
2740 :param inventory: Inventory or SEED Parser with metadata of channels. 2741 2742 Example to rotate unaligned borehole instrument data based on station 2743 inventory (a dataless SEED :class:`~obspy.io.xseed.parser.Parser` can 2744 also be provided, see details for option ``inventory``): 2745 2746 >>> from obspy import read, read_inventory 2747 >>> st = read("/path/to/ffbx_unrotated_gaps.mseed") 2748 >>> inv = read_inventory("/path/to/ffbx.stationxml") 2749 >>> st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2773, in rotate st.rotate(method, back_azimuth=back_azimuth, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2786, in rotate return self._rotate_to_zne(inventory, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3532, in _rotate_to_zne self._rotate_specific_channels_to_zne( File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3562, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2749: UnexpectedException
2135 raw data is not accessible anymore afterwards. To keep your 2136 original data, use :meth:`~obspy.core.stream.Stream.copy` to create 2137 a copy of your stream object. 2138 This also makes an entry with information on the applied processing 2139 in ``stats.processing`` of every trace. 2140 2141 .. rubric:: Example 2142 2143 >>> from obspy import read 2144 >>> from obspy.signal.invsim import corn_freq_2_paz UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2144: UnexpectedException
3293 :param npts_tol: Tolerate traces with different number of points 3294 with a difference up to this value. Surplus samples are discarded. 3295 :type time_tol: float 3296 :param time_tol: Tolerate difference, in seconds, in startime when 3297 setting the new starttime of the stack. If starttimes differs more 3298 than this value it will be set to timestamp 0. 3299 3300 >>> from obspy import read 3301 >>> st = read() 3302 >>> stack = st.stack() UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3314, in stack from obspy.signal.util import stack as stack_func File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:3302: UnexpectedException
2289 :func:`obspy.signal.trigger.carl_sta_trig`). 2290 2291 ``'zdetect'`` 2292 Z-detector (uses :func:`obspy.signal.trigger.z_detect`). 2293 2294 .. rubric:: Example 2295 2296 >>> from obspy import read 2297 >>> st = read() 2298 >>> st.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2243, in filter tr.filter(type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py:2298: UnexpectedException
1820 1821 For the example we switch off the automatic pre-filtering so that 1822 the effect of the downsampling routine becomes clearer: 1823 1824 >>> tr = Trace(data=np.arange(10)) 1825 >>> tr.stats.sampling_rate 1826 1.0 1827 >>> tr.data 1828 array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) 1829 >>> tr.decimate(4, strict_length=False, UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1854, in decimate from obspy.signal.filter import integer_decimation File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:1829: UnexpectedException
2013 samples between spline nodes. 2014 (uses :func:`obspy.signal.detrend.spline`). 2015 2016 .. rubric:: Example 2017 2018 Apply a third order spline detrend with 500 samples between nodes. 2019 2020 >>> from obspy import read 2021 >>> tr = read()[0] 2022 >>> tr.detrend("spline", order=3, dspline=500) UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2028, in detrend func = _get_function_from_entry_point('detrend', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:2022: UnexpectedException
1528 ``'remez_fir'`` (experimental) 1529 Minimax optimal bandpass using Remez algorithm (uses 1530 :func:`obspy.signal.filter.remez_fir`). 1531 1532 .. rubric:: Example 1533 1534 >>> from obspy import read 1535 >>> st = read() 1536 >>> tr = st[0] 1537 >>> tr.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:1537: UnexpectedException
2432 * New interpolation method ``lanczos``. 2433 2434 2435 .. rubric:: _`Usage Examples` 2436 2437 >>> from obspy import read 2438 >>> tr = read()[0] 2439 >>> print(tr) # doctest: +ELLIPSIS 2440 BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 100.0 Hz, 3000 samples 2441 >>> tr.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2482, in interpolate func = _get_function_from_entry_point('interpolate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:2441: UnexpectedException
2727 ``pitsasim=False`` which influence very minor details in detrending 2728 and tapering). 2729 2730 .. rubric:: Example 2731 2732 >>> from obspy import read, read_inventory 2733 >>> st = read() 2734 >>> tr = st[0].copy() 2735 >>> inv = read_inventory() 2736 >>> tr.remove_response(inventory=inv) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:2736: UnexpectedException
1404 raw data is not accessible anymore afterwards. To keep your 1405 original data, use :meth:`~obspy.core.trace.Trace.copy` to create 1406 a copy of your trace object. 1407 This also makes an entry with information on the applied processing 1408 in ``stats.processing`` of this trace. 1409 1410 .. rubric:: Example 1411 1412 >>> from obspy import read 1413 >>> from obspy.signal.invsim import corn_freq_2_paz UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:1413: UnexpectedException
1604 1605 ``'zdetect'`` 1606 Z-detector (uses :func:`obspy.signal.trigger.z_detect`). 1607 1608 .. rubric:: Example 1609 1610 >>> from obspy import read 1611 >>> st = read() 1612 >>> tr = st[0] 1613 >>> tr.filter("highpass", freq=1.0) # doctest: +ELLIPSIS UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py:1613: UnexpectedException
176 177 For more examples see the :ref:`Obspy Gallery <gallery>`. 178 179 Dealing with the Response information 180 ------------------------------------- 181 The :meth:`~obspy.core.inventory.response.Response.get_evalresp_response` 182 method will call some functions within evalresp to generate the response. 183 184 >>> response = cha.response 185 >>> response, freqs = response.get_evalresp_response(0.1, 16384, output="VEL") UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.inventory[25]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/__init__.py:185: UnexpectedException
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_channel.py", line 32, in test_response_plot cha.plot(0.005, outfile=image_path) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_inventory.py", line 186, in test_response_plot inv.plot_response(0.01, output="ACC", channel="*N", File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/inventory.py", line 1139, in plot_response cha.plot(min_freq=min_freq, output=output, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_inventory.py", line 197, in test_response_plot_epoch_times_in_label fig = inv.plot_response(0.01, label_epoch_dates=True, show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/inventory.py", line 1139, in plot_response cha.plot(min_freq=min_freq, output=output, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_network.py", line 122, in test_response_plot net.plot_response(0.002, output="DISP", channel="B*E", File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/network.py", line 732, in plot_response cha.plot(min_freq=min_freq, output=output, axes=(ax1, ax2), File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_network.py", line 133, in test_response_plot_epoch_times_in_label fig = net.plot_response(0.01, label_epoch_dates=True, show=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/network.py", line 732, in plot_response cha.plot(min_freq=min_freq, output=output, axes=(ax1, ax2), File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_station.py", line 32, in test_station_response_plot sta.plot(0.05, channel="*[NE]", outfile=image_path) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/station.py", line 550, in plot cha.plot(min_freq=min_freq, output=output, axes=(ax1, ax2), File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_station.py", line 40, in test_response_plot_degrees sta.plot(0.05, channel="*[NE]", plot_degrees=True, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/station.py", line 550, in plot cha.plot(min_freq=min_freq, output=output, axes=(ax1, ax2), File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/channel.py", line 455, in plot return self.response.plot( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1847, in plot cpx_response, freq = self.get_evalresp_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1703, in get_evalresp_response response = self.get_evalresp_response_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1648, in get_evalresp_response_for_frequencies output, chan = self._call_eval_resp_for_frequencies( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/inventory/response.py", line 1131, in _call_eval_resp_for_frequencies import obspy.signal.evrespwrapper as ew File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 1879, in test_integrate_and_differentiate st1.filter('lowpass', freq=1.0) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2243, in filter tr.filter(type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 1929, in test_read read('/path/to/UNKNOWN') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 292, in _map_example_filename args[ind] = get_example_file(args[ind][9:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 208, in get_example_file mod = __import__("obspy.%s" % module, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2017, in test_rotate st.rotate(method='NE->RT', back_azimuth=30) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2800, in rotate func = _get_function_from_entry_point("rotate", func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2141, in test_detrend st.detrend(type='simple') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2539, in detrend tr.detrend(type=type, **options) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2028, in detrend func = _get_function_from_entry_point('detrend', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2177, in test_taper st.taper(max_percentage=0.05, type='cosine') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2557, in taper tr.taper(*args, **kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2148, in taper func = _get_function_from_entry_point('taper', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2253, in test_method_chaining .decimate(factor=2, no_filter=True)\ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2443, in decimate tr.decimate(factor, no_filter=no_filter, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1854, in decimate from obspy.signal.filter import integer_decimation File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2307, in test_simulate_seedresp_parser st.simulate(**kwargs) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2176, in simulate tr.simulate(paz_remove=paz_remove, paz_simulate=paz_simulate, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1477, in simulate from obspy.signal.invsim import simulate_seismometer File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2364, in test_remove_response tr.remove_response(pre_filt=(0.1, 0.5, 30, 50)) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2418, in test_integrate tr.integrate() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1966, in integrate func = _get_function_from_entry_point('integrate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2431, in test_integrate_args tr.integrate(method='cumtrapz') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1966, in integrate func = _get_function_from_entry_point('integrate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2695, in test_rotate_to_zne st.rotate("->ZNE", inventory=metadata) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2773, in rotate st.rotate(method, back_azimuth=back_azimuth, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 2786, in rotate return self._rotate_to_zne(inventory, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3532, in _rotate_to_zne self._rotate_specific_channels_to_zne( File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3562, in _rotate_specific_channels_to_zne from obspy.signal.rotate import rotate2zne File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_stream.py", line 2739, in test_stack st2 = st.copy().stack() ^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/stream.py", line 3314, in stack from obspy.signal.util import stack as stack_func File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1223, in test_detrend tr.detrend(type='simple') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2028, in detrend func = _get_function_from_entry_point('detrend', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1261, in test_integrate tr.integrate() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1966, in integrate func = _get_function_from_entry_point('integrate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1344, in test_taper tr.taper(max_percentage=0.05, type='cosine') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2148, in taper func = _get_function_from_entry_point('taper', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1588, in test_simulate_evalresp assert patch.call_count == 1 UnboundLocalError: cannot access local variable 'patch' where it is not associated with a value
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1669, in test_method_chaining .filter("lowpass", freq=2.0)\ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1738, in test_remove_response tr1.simulate(seedresp={"filename": parser, "units": "VEL"}, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1477, in simulate from obspy.signal.invsim import simulate_seismometer File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1763, in test_remove_polynomial_response tr.remove_response() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1813, in test_processing_info_remove_response_and_sensitivity tr.remove_response() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1836, in test_processing_information tr.filter("lowpass", freq=2.0) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1888, in test_no_processing_info_for_failed_operations tr.detrend() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2028, in detrend func = _get_function_from_entry_point('detrend', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1922, in test_interpolate int_tr = org_tr.copy().interpolate(sampling_rate=1.0 / 0.003, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2482, in interpolate func = _get_function_from_entry_point('interpolate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 1992, in test_interpolation_time_shift tr.interpolate(method="lanczos", sampling_rate=10.0, a=20) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2482, in interpolate func = _get_function_from_entry_point('interpolate', method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 2062, in test_interpolation_arguments interp_tr = tr.copy().interpolate(sampling_rate=0.3, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2479, in interpolate func = _get_function_from_entry_point('interpolate', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 2169, in test_resample_new tr.resample(0.5, window='hann', no_filter=False) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1723, in resample self.filter('lowpass_cheby_2', freq=freq, maxorder=12) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 2302, in test_remove_response_plot tr.remove_response(pre_filt=pre_filt, output="DISP", File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 2312, in test_remove_response_default_units tr.remove_response(output='DEF') File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2827, in remove_response from obspy.signal.invsim import (cosine_taper, cosine_sac_taper, File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_trace.py", line 2442, in test_dtype_is_not_unnecessarily_changed lowpass = tr_int32.copy().filter("lowpass", freq=2.0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/tests/test_util_testing.py", line 61, in test_processing tr1.detrend() File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 243, in skip_if_no_data return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 2028, in detrend func = _get_function_from_entry_point('detrend', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
293 294 A "automagic" function searching a given dict of entry points for a valid 295 entry point and returns the function call. Otherwise it will raise a 296 default error message. 297 298 .. rubric:: Example 299 300 >>> _get_function_from_entry_point( UNEXPECTED EXCEPTION: IndentationError("expected an indented block after 'try' statement on line 1452", ('/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py', 1453, 13, ' with np.load(filename, allow_pickle=allow_pickle) as data:\n', 1453, 17)) Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.util.base._get_function_from_entry_point[0]>", line 1, in <module> File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py:300: UnexpectedException
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,15 @@ Traceback (most recent call last): -... -OSError: Could not find file does.not.exists ... + File "/usr/share/miniconda3/envs/test/lib/python3.11/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 "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 208, in get_example_file + mod = __import__("obspy.%s" % module, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> + from .spectral_estimation import PPSD + File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 + with np.load(filename, allow_pickle=allow_pickle) as data: + ^^^^ +IndentationError: expected an indented block after 'try' statement on line 1452 /usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py:201: DocTestFailure
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/imaging/tests/test_scan.py", line 138, in test_scan_plot_by_id_with_wildcard scanner.parse(get_example_file(filename)) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 208, in get_example_file mod = __import__("obspy.%s" % module, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452
Traceback (most recent call last): File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/io/sac/tests/test_core.py", line 824, in test_decimate_resample tr.decimate(2) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1850, in decimate self.filter('lowpass_cheby_2', freq=freq, maxorder=12) File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 282, in _add_processing_info result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/decorator.py", line 232, in raise_if_masked return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/trace.py", line 1551, in filter func = _get_function_from_entry_point('filter', type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/base.py", line 331, in _get_function_from_entry_point func = buffered_load_entry_point(entry_point.dist.key, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/core/util/misc.py", line 599, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/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.11/site-packages/pkg_resources/__init__.py", line 2867, in load_entry_point return ep.load() ^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2471, in load return self.resolve() ^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2477, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/__init__.py", line 197, in <module> from .spectral_estimation import PPSD File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/obspy/signal/spectral_estimation.py", line 1453 with np.load(filename, allow_pickle=allow_pickle) as data: ^^^^ IndentationError: expected an indented block after 'try' statement on line 1452