#135669 Report by node DESKTOP-40UNDAL covering 1688 tests from 49 modules resulted into 87 errors
Report
- ObsPy version
- 1.2.2
- GitHub Pull Request
- -
- Report file
- XML document
- Total runtime
- 85.2 sec
- Report date/time
- Sept. 13, 2023, 9 a.m.
System / Python
- Architecture
- 64bit
- Machine
- AMD64
- Node
- DESKTOP-40UNDAL
- Processor
- Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
- Python Compiler
- MSC v.1916 64 bit (AMD64)
- Python Implementation
- CPython
- Python Version
- 3.10.13
- Release
- 10
- System
- Windows
- Version
- 10.0.19044
Dependencies
- cartopy
- 0.21.1
- decorator
- 5.1.1
- flake8
- ---
- future
- 0.18.3
- geographiclib
- ---
- lxml.etree
- 4.9.2
- m2crypto
- ---
- matplotlib
- 3.7.2
- mock
- ---
- mpl_toolkits.basemap
- ---
- numpy
- 1.25.2
- pep8-naming
- ---
- pyflakes
- ---
- pyimgur
- ---
- pyproj
- 3.4.1
- requests
- 2.31.0
- scipy
- 1.11.1
- setuptools
- 68.0.0
- shapefile
- 2.1.3
- sqlalchemy
- 1.4.39
Modules (49)
Module | Errors / Failures | Tracebacks | ||||
---|---|---|---|---|---|---|
obspy.clients.arclink | Not tested | - | - | - | - | - |
obspy.clients.earthworm | Not tested | - | - | - | - | - |
obspy.clients.fdsn | Not tested | - | - | - | - | - |
obspy.clients.filesystem | - | 28 | 28 | - | 4.22s | - |
obspy.clients.iris | Not tested | - | - | - | - | - |
obspy.clients.neic | Not tested | - | - | - | - | - |
obspy.clients.nrl | Not tested | - | - | - | - | - |
obspy.clients.seedlink | Not tested | - | - | - | - | - |
obspy.clients.seishub | Not tested | - | - | - | - | - |
obspy.clients.syngine | Not tested | - | - | - | - | - |
obspy.core | 44 | 666 | 649 | 17 | 19.53s | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 |
obspy.db | 1 | 9 | 9 | - | 0.07s | 45 |
obspy.geodetics | - | 20 | 18 | 2 | 0.16s | - |
obspy.imaging | 1 | 1 | 1 | - | 0.00s | 46 |
obspy.io.ah | 1 | 5 | 5 | - | 0.08s | 47 |
obspy.io.arclink | - | 5 | 5 | - | 1.21s | - |
obspy.io.ascii | - | 28 | 28 | - | 0.65s | - |
obspy.io.cmtsolution | - | 10 | 10 | - | 0.16s | - |
obspy.io.cnv | - | 1 | 1 | - | 0.02s | - |
obspy.io.css | 1 | 1 | 1 | - | 0.00s | 48 |
obspy.io.dmx | 4 | 5 | 5 | - | 0.07s | 49 50 51 52 |
obspy.io.focmec | - | 8 | 8 | - | 0.10s | - |
obspy.io.gcf | 6 | 9 | 9 | - | 0.11s | 53 54 55 56 57 58 |
obspy.io.gse2 | - | 55 | 55 | - | 0.81s | - |
obspy.io.hypodd | - | 6 | 6 | - | 0.18s | - |
obspy.io.iaspei | - | 7 | 7 | - | 0.55s | - |
obspy.io.json | - | 4 | 4 | - | 0.04s | - |
obspy.io.kinemetrics | 3 | 7 | 7 | - | 0.30s | 59 60 61 |
obspy.io.kml | - | 3 | 3 | - | 0.23s | - |
obspy.io.mseed | - | 127 | 127 | - | 11.45s | - |
obspy.io.ndk | - | 20 | 20 | - | 0.50s | - |
obspy.io.nied | 5 | 11 | 11 | - | 0.18s | 62 63 64 65 66 |
obspy.io.nlloc | - | 12 | 12 | - | 1.40s | - |
obspy.io.nordic | 2 | 51 | 51 | - | 1.35s | 67 68 |
obspy.io.pdas | 1 | 3 | 3 | - | 0.05s | 69 |
obspy.io.pde | - | 13 | 13 | - | 0.36s | - |
obspy.io.quakeml | - | 38 | 38 | - | 0.90s | - |
obspy.io.reftek | 3 | 20 | 20 | - | 0.66s | 70 71 72 |
obspy.io.rg16 | 4 | 36 | 36 | - | 0.18s | 73 74 75 76 |
obspy.io.sac | - | 96 | 96 | - | 1.33s | - |
obspy.io.scardec | - | 5 | 5 | - | 0.12s | - |
obspy.io.seg2 | - | 2 | 2 | - | 0.04s | - |
obspy.io.segy | - | 56 | 56 | - | 1.38s | - |
obspy.io.seisan | - | 8 | 8 | - | 0.17s | - |
obspy.io.seiscomp | - | 47 | 47 | - | 2.57s | - |
obspy.io.sh | - | 25 | 25 | - | 0.72s | - |
obspy.io.shapefile | - | 7 | 7 | - | 0.56s | - |
obspy.io.stationtxt | - | 11 | 11 | - | 0.19s | - |
obspy.io.stationxml | - | 22 | 22 | - | 0.57s | - |
obspy.io.wav | - | 8 | 8 | - | 0.24s | - |
obspy.io.win | - | 2 | 2 | - | 0.09s | - |
obspy.io.xseed | - | 82 | 82 | - | 10.88s | - |
obspy.io.y | - | 5 | 5 | - | 0.09s | - |
obspy.io.zmap | - | 14 | 14 | - | 0.33s | - |
obspy.realtime | - | 22 | 22 | - | 0.25s | - |
obspy.scripts | - | 2 | 2 | - | 0.03s | - |
obspy.signal | 1 | 1 | 1 | - | 0.00s | 77 |
obspy.taup | 10 | 64 | 58 | 6 | 20.16s | 78 79 80 81 82 83 84 85 86 87 |
Summary | 87 | 1688 | 1663 | 25 | 85.21s | 87 |
Tracebacks (87)
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_channel.py", line 58, in test_response_plot with ImageComparison(self.image_dir, "channel_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_event.py", line 621, in test_catalog_plot_global with ImageComparison(self.image_dir, 'catalog-cartopy1.png') as ic: File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_event.py", line 657, in test_catalog_plot_local with ImageComparison(self.image_dir, 'catalog-cartopy3.png') as ic: File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_event.py", line 631, in test_catalog_plot_ortho with ImageComparison(self.image_dir, 'catalog-cartopy2.png') as ic: File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_event.py", line 644, in test_catalog_plot_ortho_longitude_wrap with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_inventory.py", line 198, in test_response_plot with ImageComparison(self.image_dir, "inventory_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_inventory.py", line 785, in test_location_plot_global with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_inventory.py", line 809, in test_location_plot_local with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_inventory.py", line 796, in test_location_plot_ortho with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_network.py", line 143, in test_response_plot with ImageComparison(self.image_dir, "network_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_network.py", line 409, in test_location_plot_global with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_network.py", line 433, in test_location_plot_local with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_network.py", line 420, in test_location_plot_ortho with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_response.py", line 142, in test_response_plot with ImageComparison(self.image_dir, "response_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_response.py", line 161, in test_response_plot_degrees with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_station.py", line 53, in test_response_plot with ImageComparison(self.image_dir, "station_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_station.py", line 71, in test_response_plot_degrees with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_stream.py", line 2241, in test_method_chaining .resample(st[0].stats.sampling_rate / 2)\ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2335, in resample tr.resample(sampling_rate, window=native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_stream.py", line 2785, in test_stack st2 = st.copy().stack() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 3239, in stack header = {k: v for k, v in traces[0].stats.items() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 3240, in <dictcomp> if all(np.all(tr.stats.get(k) == v) for tr in traces)} File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 3240, in <genexpr> if all(np.all(tr.stats.get(k) == v) for tr in traces)} ValueError: operands could not be broadcast together with shapes (3,) (2,)
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 2585, in test_dtype_is_not_unnecessarily_changed self.assertEqual(tr_int32.copy().resample(2.0).data.dtype, np.float64) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1900, in test_interpolate int_tr = org_tr.copy().interpolate(sampling_rate=1.0 / 0.003, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 234, in raise_if_masked return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2473, in interpolate self.data = np.atleast_1d(func( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\interpolation.py", line 157, in weighted_average_slopes sign_change = np.diff(np.sign(m)).astype(np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 2040, in test_interpolation_arguments interp_tr = tr.copy().interpolate(sampling_rate=0.3, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 234, in raise_if_masked return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2473, in interpolate self.data = np.atleast_1d(func( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\interpolation.py", line 157, in weighted_average_slopes sign_change = np.diff(np.sign(m)).astype(np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1658, in test_method_chaining .resample(tr.stats.sampling_rate / 2.0)\ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1824, in test_processing_information tr.resample(tr.stats.sampling_rate / 2.0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 2301, in test_remove_response_plot with ImageComparison(image_dir, "trace_remove_response.png", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1620, in test_resample tr_2 = tr.copy().resample(sampling_rate=50.0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 2100, in test_resample_new tr.resample(0.5, window='hanning', no_filter=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type.
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_utcdatetime.py", line 1063, in test_floating_point_second_initialization for microns in np.arange(0, 5999, dtype=np.int): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_util_base.py", line 80, in test_image_comparison with ImageComparison(path, img_basename) as ic: File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_waveform_plugins.py", line 232, in test_is_format is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_waveform_plugins.py", line 52, in test_raise_on_empty_file is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_waveform_plugins.py", line 431, in test_raise_on_unknown_format self.assertRaises(TypeError, read, tmpfile) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\unittest\case.py", line 738, in assertRaises return context.handle('assertRaises', args, kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\unittest\case.py", line 201, in handle callable_obj(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_waveform_plugins.py", line 100, in test_read_and_write st = read(outfile) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.stream.Stream.interpolate File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2520, in interpolate ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2551, in obspy.core.stream.Stream.interpolate Failed example: st.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.interpolate[3]>", line 1, in <module> st.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2560, in interpolate tr.interpolate(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 234, in raise_if_masked return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2473, in interpolate self.data = np.atleast_1d(func( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\interpolation.py", line 157, in weighted_average_slopes sign_change = np.diff(np.sign(m)).astype(np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2553, in obspy.core.stream.Stream.interpolate Failed example: print(st) # doctest: +ELLIPSIS Expected: 3 Trace(s) in Stream: BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 111.1 Hz, 3332 samples BW.RJOB..EHN | 2009-08-24T00:20:03... - ... | 111.1 Hz, 3332 samples BW.RJOB..EHE | 2009-08-24T00:20:03... - ... | 111.1 Hz, 3332 samples Got: 3 Trace(s) in Stream: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.stream.Stream.resample File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2280, in resample ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2326, in obspy.core.stream.Stream.resample Failed example: st.resample(10.0) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.stream.Stream.resample[2]>", line 1, in <module> st.resample(10.0) # doctest: +ELLIPSIS File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2335, in resample tr.resample(sampling_rate, window=native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type. ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 2328, in obspy.core.stream.Stream.resample Failed example: print(st) # doctest: +ELLIPSIS Expected: 3 Trace(s) in Stream: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 10.0 Hz, 300 samples BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 10.0 Hz, 300 samples BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 10.0 Hz, 300 samples Got: 3 Trace(s) in Stream: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.trace.Trace.interpolate File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 229, in interpolate ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 320, in obspy.core.trace.Trace.interpolate Failed example: tr.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.interpolate[3]>", line 1, in <module> tr.interpolate(sampling_rate=111.1) # doctest: +ELLIPSIS File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 234, in raise_if_masked return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2473, in interpolate self.data = np.atleast_1d(func( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\interpolation.py", line 157, in weighted_average_slopes sign_change = np.diff(np.sign(m)).astype(np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 322, in obspy.core.trace.Trace.interpolate Failed example: print(tr) # doctest: +ELLIPSIS Expected: BW.RJOB..EHZ | 2009-08-24T00:20:03... - ... | 111.1 Hz, 3332 samples Got: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 332, in obspy.core.trace.Trace.interpolate Failed example: tr.interpolate(sampling_rate=111.1, starttime=tr.stats.starttime + 10) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.interpolate[7]>", line 1, in <module> tr.interpolate(sampling_rate=111.1, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 234, in raise_if_masked return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2473, in interpolate self.data = np.atleast_1d(func( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\interpolation.py", line 157, in weighted_average_slopes sign_change = np.diff(np.sign(m)).astype(np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 335, in obspy.core.trace.Trace.interpolate Failed example: print(tr) # doctest: +ELLIPSIS Expected: BW.RJOB..EHZ | 2009-08-24T00:20:13... - ... | 111.1 Hz, 2221 samples Got: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.trace.Trace.resample File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 229, in resample ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 275, in obspy.core.trace.Trace.resample Failed example: tr.resample(4.0) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2344, in get_window beta = float(window) ValueError: could not convert string to float: 'hanning' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2362, in get_window winfunc = _win_equiv[winstr] KeyError: 'hanning' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.core.trace.Trace.resample[3]>", line 1, in <module> tr.resample(4.0) # doctest: +ELLIPSIS File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 245, in skip_if_no_data return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 273, in _add_processing_info result = func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 1733, in resample large_w = np.fft.ifftshift(get_window(native_str(window), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\scipy\signal\windows\_windows.py", line 2364, in get_window raise ValueError("Unknown window type.") from e ValueError: Unknown window type. ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 277, in obspy.core.trace.Trace.resample Failed example: len(tr) Expected: 32 Got: 8 ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 279, in obspy.core.trace.Trace.resample Failed example: tr.stats.sampling_rate Expected: 4.0 Got: 1.0 ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 281, in obspy.core.trace.Trace.resample Failed example: tr.data # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS Expected: array([ 0.5 , 0.40432914, 0.3232233 , 0.26903012, 0.25 ... Got: array([ 0.5, 0. , 0.5, 1. , 0.5, 0. , 0.5, 1. ])
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.trace.Trace.times File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2487, in times ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\trace.py", line 2529, in obspy.core.trace.Trace.times Failed example: tr.times("matplotlib") Expected: array([ 733643.01392361, 733643.01392373, 733643.01392384, ..., 733643.01427049, 733643.0142706 , 733643.01427072]) Got: array([ 14480.01392361, 14480.01392373, 14480.01392384, ..., 14480.01427049, 14480.0142706 , 14480.01427072])
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.isocalendar File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\utcdatetime.py", line 1424, in isocalendar ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\utcdatetime.py", line 1435, in obspy.core.utcdatetime.UTCDateTime.isocalendar Failed example: dt.isocalendar() Expected: (2008, 40, 3) Got: datetime.IsoCalendarDate(year=2008, week=40, weekday=3)
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.matplotlib_date File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\utcdatetime.py", line unknown line number, in matplotlib_date ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\utcdatetime.py", line ?, in obspy.core.utcdatetime.UTCDateTime.matplotlib_date Failed example: t.matplotlib_date Expected: 733643.0139780092 Got: 14480.01397800926
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1381, in test_taper_length self.assertEqual(len(w), 1) AssertionError: 2 != 1
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1351, in test_taper_onesided self.assertEqual(len(w), 1) AssertionError: 2 != 1
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_trace.py", line 1448, in test_times np.testing.assert_allclose(got[:5], expected, rtol=1e-17) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\testing\_private\utils.py", line 1504, in assert_allclose assert_array_compare(compare, actual, desired, err_msg=str(err_msg), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\contextlib.py", line 79, in inner return func(*args, **kwds) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\testing\_private\utils.py", line 797, in assert_array_compare raise AssertionError(msg) AssertionError: Not equal to tolerance rtol=1e-17, atol=0 Mismatched elements: 5 / 5 (100%) Max absolute difference: 719163.0 Max relative difference: 0.9849928778830878 x: array([ 10957. , 10957.000001, 10957.000001, 10957.000002, 10957.000002]) y: array([ 730120. , 730120.000001, 730120.000001, 730120.000002, 730120.000002])
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_utcdatetime.py", line 1092, in test_matplotlib_date np.testing.assert_almost_equal( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\contextlib.py", line 79, in inner return func(*args, **kwds) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\testing\_private\utils.py", line 537, in assert_almost_equal raise AssertionError(_build_err_msg()) AssertionError: Arrays are not almost equal to 8 decimals ACTUAL: 5965.5723676839116 DESIRED: 725128.5723676839
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\sqlalchemy\sql\elements.py", line 853, in __getattr__ return getattr(self.comparator, key) AttributeError: 'Comparator' object has no attribute '_text_converter_role' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\db\tests\test_client.py", line 246, in test_get_preview st = self.client.get_preview(trace_ids=['GE.FUR.00.BHZ', File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\db\client.py", line 253, in get_preview trace_filter.append(and_( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\sqlalchemy\sql\elements.py", line 2427, in append coercions.expect(self._text_converter_role, clause).self_group( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\sqlalchemy\sql\elements.py", line 855, in __getattr__ util.raise_( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\sqlalchemy\util\compat.py", line 208, in raise_ raise exception AttributeError: Neither 'BooleanClauseList' object nor 'Comparator' object has an attribute '_text_converter_role'
>>> Cannot import test suite for module obspy.imaging due to: ------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\Scripts\obspy-runtests-script.py", line 10, in <module> sys.exit(main()) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 747, in main errors = run(argv, interactive) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 711, in run return run_tests(verbosity, args.tests, report, args.log, args.server, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 542, in run_tests suites, status, import_failures = _get_suites(verbosity, tests) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 164, in _get_suites suite.append(ut.loadTestsFromName(test, None)) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\unittest\loader.py", line 205, in loadTestsFromName test = obj() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\imaging\tests\__init__.py", line 24, in suite add_unittests(suite, MODULE_NAME) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 70, in add_unittests _module = __import__(_module_name, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\imaging\tests\test_ppsd.py", line 16, in <module> from obspy.signal.tests.test_spectral_estimation import _get_ppsd File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\tests\test_spectral_estimation.py", line 94, in <module> _ppsd = _internal_get_ppsd() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\tests\test_spectral_estimation.py", line 90, in _internal_get_ppsd ppsd.calculate_histogram() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\spectral_estimation.py", line 1179, in calculate_histogram selected = self._stack_selection( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\spectral_estimation.py", line 1042, in _stack_selection selected = np.ones(len(times_all), dtype=np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\ah\tests\test_core.py", line 67, in test_read st = read(testfile) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
>>> Cannot import test suite for module obspy.io.css due to: ------------------------------------------------------------ File "C:\Users\E021674\Anaconda3\envs\obspy\Scripts\obspy-runtests-script.py", line 10, in <module> sys.exit(main()) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 747, in main errors = run(argv, interactive) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 711, in run return run_tests(verbosity, args.tests, report, args.log, args.server, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 542, in run_tests suites, status, import_failures = _get_suites(verbosity, tests) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 164, in _get_suites suite.append(ut.loadTestsFromName(test, None)) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\unittest\loader.py", line 205, in loadTestsFromName test = obj() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\tests\__init__.py", line 16, in suite add_doctests(suite, MODULE_NAME) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 119, in add_doctests _module = __import__(_module_name, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\tests\test_core.py", line 86, in test_check_data_content_sum st = read(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\tests\test_core.py", line 34, in test_read_via_obspy st = read(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\tests\test_core.py", line 72, in test_read_with_station st = read(filename, station='EMPL') File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.dmx.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\__init__.py", line 0, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\__init__.py", line 28, in obspy.io.dmx.__init__ Failed example: st = read("/path/to/131114_090600.dmx") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.dmx.__init__[1]>", line 1, in <module> st = read("/path/to/131114_090600.dmx") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\__init__.py", line 29, in obspy.io.dmx.__init__ Failed example: print(st) #doctest: +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.dmx.__init__[2]>", line 1, in <module> print(st) #doctest: +NORMALIZE_WHITESPACE NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\__init__.py", line 43, in obspy.io.dmx.__init__ Failed example: st = read("/path/to/131114_090600.dmx", station="EMFO") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.dmx.__init__[5]>", line 1, in <module> st = read("/path/to/131114_090600.dmx", station="EMFO") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\dmx\__init__.py", line 44, in obspy.io.dmx.__init__ Failed example: print(st) # doctest: +ELLIPSIS Expected: 1 Trace(s) in Stream: ETNA.EMFO..Z | 2013-11-14T09:06:00.000000Z - 2013-11-14T09:06:59.990000Z | 100.0 Hz, 6000 samples Got: 2 Trace(s) in Stream: ETNA.EMFO..Z | 2013-11-14T09:06:00.000000Z - 2013-11-14T09:06:59.990000Z | 100.0 Hz, 6000 samples ETNA.EMPL..Z | 2013-11-14T09:06:00.000000Z - 2013-11-14T09:06:59.990000Z | 100.0 Hz, 6000 samples
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\tests\test_core.py", line 129, in test_merge_gcf_stream st1 = read(filename, headonly=True, channel_prefix="HN") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\tests\test_core.py", line 112, in test_read_channel_prefix_via_obspy st = read(filename, headonly=True, channel_prefix="HN") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\tests\test_core.py", line 59, in test_read_head_via_obspy st = read(filename, headonly=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\tests\test_core.py", line 40, in test_read_via_obspy st = read(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\tests\test_core.py", line 154, in test_sps_d st = read(filename, headonly=True, channel_prefix="HN") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.gcf.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gcf\__init__.py", line 21, in obspy.io.gcf.__init__ Failed example: st = read("/path/to/20160603_1955n.gcf") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.gcf.__init__[1]>", line 1, in <module> st = read("/path/to/20160603_1955n.gcf") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\tests\test_core.py", line 82, in test_read_via_obspy st = read(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 670, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 150, in uncompress_file return func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 444, in _read_from_plugin is_format = is_format(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gse2\core.py", line 124, in _is_gse1 with open(filename, 'rb') as f: TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\tests\test_core.py", line 131, in test_reading_via_obspy_and_bytesio st = read(buf) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 677, in _generic_reader generic = callback_func(fh.name, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.kinemetrics.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 24, in obspy.io.kinemetrics.__init__ Failed example: st = read("/path/to/BI008_MEMA-04823.evt") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[1]>", line 1, in <module> st = read("/path/to/BI008_MEMA-04823.evt") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 25, in obspy.io.kinemetrics.__init__ Failed example: st # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[2]>", line 1, in <module> st # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 27, in obspy.io.kinemetrics.__init__ Failed example: print (st) # doctest: +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[3]>", line 1, in <module> print (st) # doctest: +NORMALIZE_WHITESPACE NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 45, in obspy.io.kinemetrics.__init__ Failed example: stats_evt = st[0].stats.pop('kinemetrics_evt') Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[4]>", line 1, in <module> stats_evt = st[0].stats.pop('kinemetrics_evt') NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 46, in obspy.io.kinemetrics.__init__ Failed example: print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[5]>", line 1, in <module> print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 58, in obspy.io.kinemetrics.__init__ Failed example: for k, v in sorted(stats_evt.items()): print(k, v) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[6]>", line 1, in <module> for k, v in sorted(stats_evt.items()): NameError: name 'stats_evt' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 98, in obspy.io.kinemetrics.__init__ Failed example: type(st[0].data) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[7]>", line 1, in <module> type(st[0].data) # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\kinemetrics\__init__.py", line 100, in obspy.io.kinemetrics.__init__ Failed example: print(st[0].data) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.kinemetrics.__init__[8]>", line 1, in <module> print(st[0].data) NameError: name 'st' is not defined
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\tests\test_knet_reading.py", line 26, in test_read_knet_ascii tr = read(testfile)[0] File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 670, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 150, in uncompress_file return func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 444, in _read_from_plugin is_format = is_format(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gse2\core.py", line 124, in _is_gse1 with open(filename, 'rb') as f: TypeError: expected str, bytes or os.PathLike object, not BytesIO During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\tests\test_knet_reading.py", line 60, in test_read_knet_ascii_from_bytes_io tr = read(buf)[0] File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 677, in _generic_reader generic = callback_func(fh.name, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 670, in _generic_reader generic = callback_func(pathname_or_url, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 150, in uncompress_file return func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 444, in _read_from_plugin is_format = is_format(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\gse2\core.py", line 124, in _is_gse1 with open(filename, 'rb') as f: TypeError: expected str, bytes or os.PathLike object, not BufferedReader During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\tests\test_knet_reading.py", line 41, in test_read_knet_ascii_from_open_files tr = read(fh)[0] File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 677, in _generic_reader generic = callback_func(fh.name, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\tests\test_knet_reading.py", line 76, in test_station_name_hack tr = read(testfile, convert_stnm=True)[0] File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.nied.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 0, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 90, in obspy.io.nied.__init__ Failed example: st = read('/path/to/test.knet') Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[5]>", line 1, in <module> st = read('/path/to/test.knet') File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 91, in obspy.io.nied.__init__ Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[6]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 101, in obspy.io.nied.__init__ Failed example: st = read('/path/to/test.knet',convert_stnm=True) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[7]>", line 1, in <module> st = read('/path/to/test.knet',convert_stnm=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 102, in obspy.io.nied.__init__ Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[8]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 109, in obspy.io.nied.__init__ Failed example: print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[9]>", line 1, in <module> print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 123, in obspy.io.nied.__init__ Failed example: print(st[0].stats.knet.stlo) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[10]>", line 1, in <module> print(st[0].stats.knet.stlo) NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nied\__init__.py", line 126, in obspy.io.nied.__init__ Failed example: print(st[0].stats.knet.comment) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.nied.__init__[11]>", line 1, in <module> print(st[0].stats.knet.comment) NameError: name 'st' is not defined
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nordic\tests\test_nordic.py", line 1013, in test_ellipse_plot with ImageComparison(self.testing_path, 'plot_ellipse.png', File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\nordic\tests\test_nordic.py", line 1030, in test_ellipse_plot_tangents with ImageComparison(self.testing_path, 'plot_ellipse_tangents.png', File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.pdas.core._read_pdas File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\pdas\core.py", line 45, in _read_pdas ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\pdas\core.py", line 61, in obspy.io.pdas.core._read_pdas Failed example: st = read("/path/to/p1246001.108") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.pdas.core._read_pdas[1]>", line 1, in <module> st = read("/path/to/p1246001.108") File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\pdas\core.py", line 62, in obspy.io.pdas.core._read_pdas Failed example: st # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.pdas.core._read_pdas[2]>", line 1, in <module> st # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\pdas\core.py", line 64, in obspy.io.pdas.core._read_pdas Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.pdas.core._read_pdas[3]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\tests\test_core.py", line 216, in test_integration_with_obspy_core st_reftek = obspy.read( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\tests\test_core.py", line 531, in test_reading_packet_with_vpu_float_string st = obspy.read(self.reftek_file_vpu, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.reftek.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\__init__.py", line 53, in obspy.io.reftek.__init__ Failed example: st = read("/path/to/225051000_00008656", network="BW", location="", component_codes="ZNE") Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.reftek.__init__[4]>", line 1, in <module> st = read("/path/to/225051000_00008656", network="BW", location="", File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\__init__.py", line 55, in obspy.io.reftek.__init__ Failed example: st # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.reftek.__init__[5]>", line 1, in <module> st # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\__init__.py", line 57, in obspy.io.reftek.__init__ Failed example: print(st) # doctest: +ELLIPSIS Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.reftek.__init__[6]>", line 1, in <module> print(st) # doctest: +ELLIPSIS NameError: name 'st' is not defined ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\reftek\__init__.py", line 71, in obspy.io.reftek.__init__ Failed example: print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.reftek.__init__[7]>", line 1, in <module> print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE NameError: name 'st' is not defined
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\tests\test_read_rg16.py", line 126, in test_contacts_north_and_merge st = rc._read_rg16(filename, contacts_north=True, merge=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 28, in _open_file return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\core.py", line 81, in _read_rg16 traces = _quick_merge(traces) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 141, in _quick_merge ar, trace_ar = _trace_list_to_rec_array(traces) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 165, in _trace_list_to_rec_array dtype1 = [(nstr('id'), np.object), (nstr('starttime'), float), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\tests\test_read_rg16.py", line 115, in test_merge st_merged = rc._read_rg16(fcnt_file, merge=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 28, in _open_file return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\core.py", line 81, in _read_rg16 traces = _quick_merge(traces) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 141, in _quick_merge ar, trace_ar = _trace_list_to_rec_array(traces) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\util.py", line 165, in _trace_list_to_rec_array dtype1 = [(nstr('id'), np.object), (nstr('starttime'), float), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'object'. `np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\tests\test_read_rg16.py", line 35, in test_reading_rg16_files st_1 = read(fcnt_file) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 2221, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.io.rg16.__init__ File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\__init__.py", line 0, in __init__ ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\__init__.py", line 53, in obspy.io.rg16.__init__ Failed example: st = obspy.read(filename) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.rg16.__init__[3]>", line 1, in <module> st = obspy.read(filename) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\__init__.py", line 59, in obspy.io.rg16.__init__ Failed example: st = obspy.read(filename, merge=True) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.rg16.__init__[5]>", line 1, in <module> st = obspy.read(filename, merge=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ---------------------------------------------------------------------- File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\rg16\__init__.py", line 65, in obspy.io.rg16.__init__ Failed example: st = obspy.read(filename, contacts_north=True) Exception raised: Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\doctest.py", line 1350, in __run exec(compile(example.source, filename, "single", File "<doctest obspy.io.rg16.__init__[6]>", line 1, in <module> st = obspy.read(filename, contacts_north=True) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 300, in _map_example_filename return func(*args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 212, in read st = _generic_reader(pathname_or_url, _read, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 702, in _generic_reader generic = callback_func(pathnames[0], **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\decorator.py", line 232, in fun return caller(func, *(extras + args), **kw) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\decorator.py", line 210, in uncompress_file result = func(filename, *args, **kwargs) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 256, in _read stream, format = _read_from_plugin('waveform', filename, format=format, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\base.py", line 432, in _read_from_plugin is_format = buffered_load_entry_point( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\misc.py", line 651, in buffered_load_entry_point _ENTRY_POINT_CACHE[hash_str] = load_entry_point(dist, group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 536, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2931, in load_entry_point return ep.load() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2518, in load return self.resolve() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\pkg_resources\__init__.py", line 2524, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\io\css\core.py", line 25, in <module> b'c0': (b'S12', np.int), File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
>>> Cannot import test suite for module obspy.signal due to: ------------------------------------------------------------ File "C:\Users\E021674\Anaconda3\envs\obspy\Scripts\obspy-runtests-script.py", line 10, in <module> sys.exit(main()) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 747, in main errors = run(argv, interactive) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 711, in run return run_tests(verbosity, args.tests, report, args.log, args.server, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 542, in run_tests suites, status, import_failures = _get_suites(verbosity, tests) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\scripts\runtests.py", line 164, in _get_suites suite.append(ut.loadTestsFromName(test, None)) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\unittest\loader.py", line 205, in loadTestsFromName test = obj() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\tests\__init__.py", line 17, in suite add_unittests(suite, MODULE_NAME) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 70, in add_unittests _module = __import__(_module_name, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\tests\test_spectral_estimation.py", line 94, in <module> _ppsd = _internal_get_ppsd() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\tests\test_spectral_estimation.py", line 90, in _internal_get_ppsd ppsd.calculate_histogram() File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\spectral_estimation.py", line 1179, in calculate_histogram selected = self._stack_selection( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\signal\spectral_estimation.py", line 1042, in _stack_selection selected = np.ones(len(times_all), dtype=np.bool) File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\numpy\__init__.py", line 319, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'bool'. `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 102, in test_cartesian_many_phases with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 114, in test_cartesian_many_phases_buried_station with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 128, in test_cartesian_many_phases_one_way with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 159, in test_plot_travel_times with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 171, in test_plot_travel_times_convenience with ImageComparison( File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 85, in test_spherical_diff_phases with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 36, in test_spherical_many_phases with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 49, in test_spherical_many_phases_buried_station with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 62, in test_spherical_many_phases_one_way with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Traceback (most recent call last): File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\taup\tests\test_plotting.py", line 74, in test_spherical_more_then_360_degrees with ImageComparison(self.image_dir, File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\obspy\core\util\testing.py", line 418, in __enter__ rcParams['text.hinting'] = False File "C:\Users\E021674\Anaconda3\envs\obspy\lib\site-packages\matplotlib\__init__.py", line 722, in __setitem__ raise ValueError(f"Key {key}: {ve}") from None ValueError: Key text.hinting: False is not a valid value for text.hinting; supported values are ['default', 'no_autohint', 'force_autohint', 'no_hinting', 'auto', 'native', 'either', 'none']
Skipped tests (25)
Submodule | Test | Skip message |
---|---|---|
core | test_flake8 (obspy.core.tests.test_code_formatting.CodeFormattingTestCase) | No code formatting tests for release builds |
core | test_use_obspy_deprecation_warning (obspy.core.tests.test_code_formatting.CodeFormattingTestCase) | No code formatting tests for release builds |
core | test_future_imports_in_every_file (obspy.core.tests.test_code_formatting.FutureUsageTestCase) | No code formatting tests for release builds |
core | test_no_pyplot_import_in_any_file (obspy.core.tests.test_code_formatting.MatplotlibBackendUsageTestCase) | No code formatting tests for release builds |
core | test_catalog_plot_global (obspy.core.tests.test_event.CatalogBasemapTestCase) | basemap not installed |
core | test_catalog_plot_local (obspy.core.tests.test_event.CatalogBasemapTestCase) | basemap not installed |
core | test_catalog_plot_ortho (obspy.core.tests.test_event.CatalogBasemapTestCase) | basemap not installed |
core | test_catalog_plot_ortho_longitude_wrap (obspy.core.tests.test_event.CatalogBasemapTestCase) | basemap not installed |
core | test_plot_catalog_before_1900 (obspy.core.tests.test_event.CatalogBasemapTestCase) | basemap not installed |
core | test_plot_farfield_without_quiver_with_maps (obspy.core.tests.test_event.EventTestCase) | basemap not installed |
core | test_combined_station_event_plot (obspy.core.tests.test_inventory.InventoryBasemapTestCase) | basemap not installed |
core | test_location_plot_global (obspy.core.tests.test_inventory.InventoryBasemapTestCase) | basemap not installed |
core | test_location_plot_local (obspy.core.tests.test_inventory.InventoryBasemapTestCase) | basemap not installed |
core | test_location_plot_ortho (obspy.core.tests.test_inventory.InventoryBasemapTestCase) | basemap not installed |
core | test_location_plot_global (obspy.core.tests.test_network.NetworkBasemapTestCase) | basemap not installed |
core | test_location_plot_local (obspy.core.tests.test_network.NetworkBasemapTestCase) | basemap not installed |
core | test_location_plot_ortho (obspy.core.tests.test_network.NetworkBasemapTestCase) | basemap not installed |
geodetics | test_gps_2_dist_azimuth_with_geographiclib (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) | Module geographiclib is not installed |
geodetics | test_issue_375 (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) | Module geographiclib is not installed |
taup | test_compute_ray_paths (obspy.taup.tests.test_ray_paths.RayPathCalculationsTestCase) | test needs geographiclib >= 1.34 |
taup | test_p_iasp91_geo_manual (obspy.taup.tests.test_tau.TauPyModelTestCase) | Module geographiclib is not installed |
taup | test_pierce_p_iasp91_geo (obspy.taup.tests.test_tau.TauPyModelTestCase) | test needs geographiclib >= 1.34 |
taup | test_single_path_geo_iasp91 (obspy.taup.tests.test_tau.TauPyModelTestCase) | test needs geographiclib >= 1.34 |
taup | test_path_geo (obspy.taup.tests.test_taup_geo.TaupGeoTestCase) | Module geographiclib is not installed or too old. |
taup | test_path_resampling (obspy.taup.tests.test_taup_geo.TaupGeoTestCase) | Module geographiclib is not installed or too old. |
Slowest tests (20)
Runtime | Test |
---|---|
7.999s | test_response_calculation_from_seed_and_xseed (obspy.io.xseed.tests.test_core.CoreTestCase) |
3.763s | __init__ (obspy.taup) |
3.466s | test_read_and_write_traces (obspy.io.mseed.tests.test_mseed_reading_and_writing.MSEEDReadingAndWritingTestCase) |
2.717s | test_shoot_existing_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase) |
2.584s | read (obspy.core.stream) |
2.068s | test_read_from_sds_with_wildcarded_seed_ids (obspy.clients.filesystem.tests.test_sds.SDSTestCase) |
1.912s | test_infinite_loop (obspy.io.mseed.tests.test_mseed_special_issues.MSEEDSpecialIssueTestCase) |
1.794s | plot_travel_times (obspy.taup.tau) |
1.663s | test_regional_models (obspy.taup.tests.test_tau.TauPyModelTestCase) |
1.468s | test_reading_and_writing_via_the_stats_attribute (obspy.io.mseed.tests.test_mseed_reading_and_writing.MSEEDReadingAndWritingTestCase) |
1.396s | test_read_url_via_network (obspy.core.tests.test_stream.StreamTestCase) |
1.387s | test_vs_java_iasp91 (obspy.taup.tests.test_tau.TauPyModelTestCase) |
1.385s | test_many_identically_named_phases (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase) |
1.332s | test_long_year_range (obspy.io.mseed.tests.test_mseed_special_issues.MSEEDSpecialIssueTestCase) |
1.221s | test_read_nlloc_scatter_coordinate_conversion (obspy.io.nlloc.tests.test_util.NLLOCTestCase) |
1.144s | test_auto_read_arclink_xml (obspy.io.arclink.tests.test_inventory_xml.ArclinkInventoryTestCase) |
0.615s | __init__ (obspy.taup.tau.TauPyModel) |
0.608s | test_sds_report (obspy.clients.filesystem.tests.test_sds.SDSTestCase) |
0.596s | test_surface_wave_ttimes (obspy.taup.tests.test_tau.TauPyModelTestCase) |
0.559s | test_response_calculation_from_resp_files (obspy.io.xseed.tests.test_core.CoreTestCase) |