#111840 Report by node macbook13 covering 1892 tests from 49 modules resulted into 7 errors

Report

ObsPy version
1.2.2
GitHub Pull Request
-
Report file
XML document
Total runtime
124.2 sec
Report date/time
Sept. 1, 2020, 5:23 a.m.

System / Python

Architecture
64bit
Machine
x86_64
Node
macbook13
Processor
i386
Python Compiler
Clang 4.0.1 (tags/RELEASE_401/final)
Python Implementation
CPython
Python Version
3.7.7
Release
19.6.0
System
Darwin
Version
Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64

Dependencies

cartopy
---
decorator
4.4.2
flake8
---
future
0.18.2
geographiclib
1.50
lxml.etree
4.5.2
m2crypto
---
matplotlib
3.3.1
mock
4.0.2
mpl_toolkits.basemap
---
numpy
1.19.1
pep8-naming
---
pyflakes
2.2.0
pyimgur
---
pyproj
1.9.6
requests
2.24.0
scipy
1.5.2
setuptools
49.6.0.post20200814
shapefile
2.1.0
sqlalchemy
1.3.19

Modules (49)

Module Errors / Failures Tracebacks
obspy.clients.arclink Not tested -
obspy.clients.earthworm Not tested -
obspy.clients.fdsn Not tested -
obspy.clients.filesystem - -
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 6 1 2 3 4 5 6
obspy.db - -
obspy.geodetics - -
obspy.imaging 1 7
obspy.io.ah - -
obspy.io.arclink - -
obspy.io.ascii - -
obspy.io.cmtsolution - -
obspy.io.cnv - -
obspy.io.css - -
obspy.io.dmx - -
obspy.io.focmec - -
obspy.io.gcf - -
obspy.io.gse2 - -
obspy.io.hypodd - -
obspy.io.iaspei - -
obspy.io.json - -
obspy.io.kinemetrics - -
obspy.io.kml - -
obspy.io.mseed - -
obspy.io.ndk - -
obspy.io.nied - -
obspy.io.nlloc - -
obspy.io.nordic - -
obspy.io.pdas - -
obspy.io.pde - -
obspy.io.quakeml - -
obspy.io.reftek - -
obspy.io.rg16 - -
obspy.io.sac - -
obspy.io.scardec - -
obspy.io.seg2 - -
obspy.io.segy - -
obspy.io.seisan - -
obspy.io.seiscomp - -
obspy.io.sh - -
obspy.io.shapefile - -
obspy.io.stationtxt - -
obspy.io.stationxml - -
obspy.io.wav - -
obspy.io.win - -
obspy.io.xseed - -
obspy.io.y - -
obspy.io.zmap - -
obspy.realtime - -
obspy.scripts - -
obspy.signal - -
obspy.taup - -
Summary 7 7

Tracebacks (7)

Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/tests/test_network.py", line 386, in test_location_plot_local
size=13**2, outfile=ic.name)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/inventory/network.py", line 609, in plot
from obspy.imaging.maps import plot_map
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/imaging/maps.py", line 33, in <module>
from mpl_toolkits.basemap import Basemap
File "/opt/anaconda3/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", line 26, in <module>
from matplotlib.cbook import dedent
ImportError: cannot import name 'dedent' from 'matplotlib.cbook' (/opt/anaconda3/lib/python3.7/site-packages/matplotlib/cbook/__init__.py)
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/tests/test_network.py", line 367, in test_location_plot_ortho
color='yellow', label=False, outfile=ic.name)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/inventory/network.py", line 609, in plot
from obspy.imaging.maps import plot_map
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/imaging/maps.py", line 33, in <module>
from mpl_toolkits.basemap import Basemap
File "/opt/anaconda3/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", line 26, in <module>
from matplotlib.cbook import dedent
ImportError: cannot import name 'dedent' from 'matplotlib.cbook' (/opt/anaconda3/lib/python3.7/site-packages/matplotlib/cbook/__init__.py)
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/doctest.py", line 2197, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.times
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/trace.py", line 2487, in times
----------------------------------------------------------------------
File "/opt/anaconda3/lib/python3.7/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 "/opt/anaconda3/lib/python3.7/doctest.py", line 2197, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.utcdatetime.UTCDateTime.matplotlib_date
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/utcdatetime.py", line unknown line number, in matplotlib_date
----------------------------------------------------------------------
File "/opt/anaconda3/lib/python3.7/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 "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/tests/test_utcdatetime.py", line 1093, in test_matplotlib_date
t.matplotlib_date, expected, decimal=8)
File "/opt/anaconda3/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 595, 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 "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/tests/test_trace.py", line 1448, in test_times
np.testing.assert_allclose(got[:5], expected, rtol=1e-17)
File "/opt/anaconda3/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 1528, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/opt/anaconda3/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 840, 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])
>>> Cannot import test suite for module obspy.imaging due to:
-------------------------------------------------------------
File "/opt/anaconda3/bin/obspy-runtests", line 8, in <module>
sys.exit(main())
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/scripts/runtests.py", line 747, in main
errors = run(argv, interactive)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/scripts/runtests.py", line 715, in run
pr_url=args.pr_url)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/scripts/runtests.py", line 542, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/scripts/runtests.py", line 164, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/opt/anaconda3/lib/python3.7/unittest/loader.py", line 205, in loadTestsFromName
test = obj()
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/imaging/tests/__init__.py", line 23, in suite
add_doctests(suite, MODULE_NAME)
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/core/util/testing.py", line 120, in add_doctests
fromlist=[native_str("obspy")])
File "/opt/anaconda3/lib/python3.7/site-packages/obspy/imaging/maps.py", line 33, in <module>
from mpl_toolkits.basemap import Basemap
File "/opt/anaconda3/lib/python3.7/site-packages/mpl_toolkits/basemap/__init__.py", line 26, in <module>
from matplotlib.cbook import dedent
ImportError: cannot import name 'dedent' from 'matplotlib.cbook' (/opt/anaconda3/lib/python3.7/site-packages/matplotlib/cbook/__init__.py)

Skipped tests (27)

Submodule Test Skip message
core test_combined_station_event_plot (obspy.core.tests.test_inventory.InventoryBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_location_plot_global (obspy.core.tests.test_inventory.InventoryBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_location_plot_local (obspy.core.tests.test_inventory.InventoryBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_location_plot_ortho (obspy.core.tests.test_inventory.InventoryBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_location_plot_global (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_location_plot_local (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_location_plot_ortho (obspy.core.tests.test_inventory.InventoryCartopyTestCase) cartopy not installed
core test_catalog_plot_global (obspy.core.tests.test_event.CatalogBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_catalog_plot_local (obspy.core.tests.test_event.CatalogBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_catalog_plot_ortho (obspy.core.tests.test_event.CatalogBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_catalog_plot_ortho_longitude_wrap (obspy.core.tests.test_event.CatalogBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_plot_catalog_before_1900 (obspy.core.tests.test_event.CatalogBasemapTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_catalog_plot_global (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_local (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_ortho (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_catalog_plot_ortho_longitude_wrap (obspy.core.tests.test_event.CatalogCartopyTestCase) Cartopy not installed or too old
core test_plot_farfield_without_quiver_with_maps (obspy.core.tests.test_event.EventTestCase) matplotlib 3.0.1 is not compatible with basemap
core test_location_plot_global (obspy.core.tests.test_network.NetworkBasemapTestCase) unsupported proj4 library
core test_location_plot_global (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
core test_location_plot_local (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
core test_location_plot_ortho (obspy.core.tests.test_network.NetworkCartopyTestCase) cartopy not installed
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
geodetics test_gps_2_dist_azimuth_bug150 (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) Module geographiclib is installed, not using calc_vincenty_inverse
signal test_ppsd_spectrogram_plot (obspy.signal.tests.test_spectral_estimation.PsdTestCase) matplotlib >= 3 shifts labels

Slowest tests (20)

Runtime Test
5.814s __init__ (obspy.taup)
5.162s test_response_calculation_from_seed_and_xseed (obspy.io.xseed.tests.test_core.CoreTestCase)
5.113s read (obspy.core.stream)
4.157s test_shoot_existing_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
3.308s test_ppsd_restricted_stacks (obspy.signal.tests.test_spectral_estimation.PsdTestCase)
2.766s test_read_url_via_network (obspy.core.tests.test_stream.StreamTestCase)
2.551s plot_travel_times (obspy.taup.tau)
2.410s test_relcal_different_overlaps (obspy.signal.tests.test_calibration.CalibrationTestCase)
2.351s test_polarization_vidale (obspy.signal.tests.test_polarization.PolarizationTestCase)
2.286s test_regional_models (obspy.taup.tests.test_tau.TauPyModelTestCase)
2.259s test_remove_response_plot (obspy.core.tests.test_trace.TraceTestCase)
2.045s test_vs_java_iasp91 (obspy.taup.tests.test_tau.TauPyModelTestCase)
1.879s test_correlate_stream_template_and_correlation_detector (obspy.signal.tests.test_cross_correlation.CrossCorrelationTestCase)
1.805s test_many_identically_named_phases (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
1.447s plot_tfr (obspy.signal.tf_misfit)
1.396s test_plot_tf_misfits (obspy.signal.tests.test_tf_misfit.TfPlotTestCase)
1.382s test_auto_read_arclink_xml (obspy.io.arclink.tests.test_inventory_xml.ArclinkInventoryTestCase)
1.223s test_spherical_many_phases (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
1.207s test_rotate2zne_against_lqt_different_combinations (obspy.signal.tests.test_rotate.RotateTestCase)
1.155s test_plot_tf_gofs (obspy.signal.tests.test_tf_misfit.TfPlotTestCase)