#156733 Report by node travis-ci covering 887 tests from 16 modules resulted into 53 errors
Report
- ObsPy version
- 0.8.4-589-g549e5-dirty
- GitHub Pull Request
- -
- Report file
- XML document
- Total runtime
- 56.0 sec
- Report date/time
- May 9, 2026, 8:10 a.m.
System / Python
- Architecture
- 64bit
- Machine
- x86_64
- Node
- travis-ci
- Processor
- x86_64
- Python Compiler
- GCC 9.3.0
- Python Implementation
- CPython
- Python Version
- 2.7.18rc1
- Release
- 5.10.0-218.0.0.mt20250120.565.mt2203sp4.x86_64
- System
- Linux
- Version
- #1 SMP Tue Jan 21 14:11:32 CST 2025
Dependencies
- lxml.etree
- 5.0.2
- matplotlib
- 2.2.5
- mpl_toolkits.basemap
- Not Installed
- numpy
- 1.16.6
- scipy
- 1.2.3
- sqlalchemy
- 1.4.54
- suds
- 0.4
Modules (16)
| Module | Errors / Failures | Tracebacks | ||||
|---|---|---|---|---|---|---|
| obspy.arclink | Not tested | - | - | - | - | - |
| obspy.core | 17 | 447 | 446 | 1 | 27.77s | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
| obspy.css | - | 3 | 3 | - | 0.30s | - |
| obspy.datamark | - | 2 | 2 | - | 0.12s | - |
| obspy.db | Not tested | - | - | - | - | - |
| obspy.earthworm | Not tested | - | - | - | - | - |
| obspy.fdsn | Not tested | - | - | - | - | - |
| obspy.gse2 | 1 | 33 | 33 | - | 0.43s | 18 |
| obspy.imaging | 19 | 31 | 31 | - | 2.16s | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
| obspy.iris | Not tested | - | - | - | - | - |
| obspy.mseed | 1 | 78 | 78 | - | 4.11s | 38 |
| obspy.neic | Not tested | - | - | - | - | - |
| obspy.neries | Not tested | - | - | - | - | - |
| obspy.realtime | 2 | 22 | 22 | - | 0.46s | 39 40 |
| obspy.sac | 1 | 66 | 66 | - | 0.53s | 41 |
| obspy.seedlink | Not tested | - | - | - | - | - |
| obspy.seg2 | - | 1 | 1 | - | 0.07s | - |
| obspy.segy | - | 47 | 47 | - | 1.03s | - |
| obspy.seisan | 1 | 7 | 7 | - | 0.05s | 42 |
| obspy.seishub | Not tested | - | - | - | - | - |
| obspy.sh | 1 | 17 | 17 | - | 0.34s | 43 |
| obspy.signal | 10 | 85 | 85 | - | 16.86s | 44 45 46 47 48 49 50 51 52 53 |
| obspy.taup | Not tested | - | - | - | - | - |
| obspy.wav | - | 8 | 7 | 1 | 0.38s | - |
| obspy.xseed | - | 36 | 36 | - | 1.27s | - |
| obspy.y | - | 4 | 4 | - | 0.07s | - |
| Summary | 53 | 887 | 885 | 2 | 55.97s | 53 |
Tracebacks (53)
Traceback (most recent call last): File "obspy/core/tests/test_code_formatting.py", line 56, in test_flake8 if flake8.main.check_file(py_file): AttributeError: 'module' object has no attribute 'check_file'
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 26, in test_createPreview preview = createPreview(trace, delta=60) File "obspy/core/preview.py", line 56, in createPreview if end > (delta / 2) and data[end:].size: TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 59, in test_createPreviewWithMaskedArrays preview = createPreview(trace, delta=60) File "obspy/core/preview.py", line 46, in createPreview if start > (delta / 2) and data[0:start].size: File "/usr/local/lib/python2.7/dist-packages/numpy/ma/core.py", line 3174, in __getitem__ dout = self.data[indx] TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 195, in test_createPreviewWithUnroundedSampleRate createPreview(tr, delta=30) File "obspy/core/preview.py", line 46, in createPreview if start > (delta / 2) and data[0:start].size: TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 207, in test_createPreviewWithVerySmallSampleRate createPreview(tr) File "obspy/core/preview.py", line 46, in createPreview if start > (delta / 2) and data[0:start].size: TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 109, in test_mergePreviews st2 = mergePreviews(st) File "obspy/core/preview.py", line 134, in mergePreviews data = np.empty(samples, dtype=dtype) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/core/tests/test_preview.py", line 179, in test_mergePreviews2 st2 = mergePreviews(st1) File "obspy/core/preview.py", line 134, in mergePreviews data = np.empty(samples, dtype=dtype) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last):
File "obspy/core/tests/test_stream.py", line 1823, in test_plot
self.mseed_stream.plot(show=False)
File "obspy/core/stream.py", line 1084, in plot
return waveform.plotWaveform(*args, **kwargs)
File "obspy/imaging/waveform.py", line 255, in plotWaveform
self.plot(*args, **kwargs)
File "obspy/imaging/waveform.py", line 353, in plot
axisbg=self.background_color)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py", line 1257, in add_subplot
a = subplot_class_factory(projection_class)(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_subplots.py", line 77, in __init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 541, in __init__
self.update(kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 888, in update
for k, v in props.items()]
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 881, in _update_property
raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property axisbg
Traceback (most recent call last): File "obspy/core/tests/test_trace.py", line 147, in test_ltrim np.testing.assert_array_equal(trace.data, tr.data[delta:]) File "/usr/local/lib/python2.7/dist-packages/numpy/ma/core.py", line 3174, in __getitem__ dout = self.data[indx] TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last):
File "obspy/core/tests/test_trace.py", line 1247, in test_plot
tr.plot(show=False)
File "obspy/core/trace.py", line 752, in plot
return waveform.plotWaveform()
File "obspy/imaging/waveform.py", line 255, in plotWaveform
self.plot(*args, **kwargs)
File "obspy/imaging/waveform.py", line 353, in plot
axisbg=self.background_color)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py", line 1257, in add_subplot
a = subplot_class_factory(projection_class)(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_subplots.py", line 77, in __init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 541, in __init__
self.update(kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 888, in update
for k, v in props.items()]
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 881, in _update_property
raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property axisbg
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.__init__ File "obspy/core/__init__.py", line 11, in __init__ ---------------------------------------------------------------------- File "obspy/core/__init__.py", line 63, in obspy.core.__init__ Failed example: tr.data Expected: array([ 0. , 0.00694644, 0.07597424, ..., 1.93449584, 0.98196204, 0.44196924]) Got: array([0. , 0.00694644, 0.07597424, ..., 1.93449584, 0.98196204, 0.44196924])
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.stream.Stream.std File "obspy/core/stream.py", line 2276, in std ---------------------------------------------------------------------- File "obspy/core/stream.py", line 2293, in obspy.core.stream.Stream.std Failed example: st.std() Expected: [4.2614551505325036, 4.4348618918744247] Got: [4.261455150532504, 4.434861891874425]
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.trace.Trace.resample File "obspy/core/trace.py", line 1368, in resample ---------------------------------------------------------------------- File "obspy/core/trace.py", line 1410, 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.40432914, 0.3232233 , 0.26903012, 0.25 , 0.26903012, 0.3232233 , 0.40432914, 0.5 , 0.59567086, 0.6767767 , 0.73096988, 0.75 , 0.73096988, 0.6767767 , 0.59567086, 0.5 , 0.40432914, 0.3232233 , 0.26903012, 0.25 , 0.26903012, 0.3232233 , 0.40432914, 0.5 , 0.59567086, 0.6767767 , 0.73096988, 0.75 , 0.73096988, 0.6767767 , 0.59567086])
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.core.trace.Trace.std File "obspy/core/trace.py", line 1540, in std ---------------------------------------------------------------------- File "obspy/core/trace.py", line 1552, in obspy.core.trace.Trace.std Failed example: tr.std() Expected: 4.2614551505325036 Got: 4.261455150532504 ---------------------------------------------------------------------- File "obspy/core/trace.py", line 1555, in obspy.core.trace.Trace.std Failed example: tr.std() Expected: 4.4348618918744247 Got: 4.434861891874425
Traceback (most recent call last): File "obspy/core/tests/test_utcdatetime.py", line 55, in test_fromNumPyString self.assertEqual(dt, UTCDateTime(2009, 7, 1, 12, 12, 12)) AssertionError: <obspy.core.utcdatetime.UTCDateTime object at 0x7fcc47d8b890> != UTCDateTime(2009, 7, 1, 12, 12, 12)
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2224, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.util.base.createEmptyDataChunk
File "obspy/core/util/base.py", line 107, in createEmptyDataChunk
----------------------------------------------------------------------
File "obspy/core/util/base.py", line 123, in obspy.core.util.base.createEmptyDataChunk
Failed example:
createEmptyDataChunk(6, np.dtype('complex128'), 0)
Expected:
array([ 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j])
Got:
array([0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j])
----------------------------------------------------------------------
File "obspy/core/util/base.py", line 126, in obspy.core.util.base.createEmptyDataChunk
Failed example:
createEmptyDataChunk(3, 'f') # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Expected:
masked_array(data = [-- -- --],
mask = ...,
...)
Got:
masked_array(data=[--, --, --],
mask=[ True, True, True],
fill_value=1e+20,
dtype=float32)
Traceback (most recent call last): File "obspy/core/tests/test_util_geodetics.py", line 67, in test_gps2DistAzimuthWithGeographiclib self.assertRaises(ValueError, gps2DistAzimuth, 91, 0, 0, 0) AssertionError: ValueError not raised
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.gse2.__init__ File "obspy/gse2/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "obspy/gse2/__init__.py", line 65, in obspy.gse2.__init__ Failed example: print(st[0].data) Expected: [ 12 -10 16 ..., 8 0 -40] Got: [ 12 -10 16 ... 8 0 -40]
Traceback (most recent call last):
File "obspy/imaging/tests/test_waveform.py", line 257, in test_plotWithLabels
st.plot(outfile=ic.name)
File "obspy/core/util/base.py", line 550, in __exit__
self.compare()
File "obspy/core/util/base.py", line 568, in compare
msg = compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 407, in compare_images
raise Exception("Output image file %s is empty." % actual)
Exception: Output image file /tmp/obspy-hzULrZ.png is empty.
Traceback (most recent call last): File "obspy/imaging/tests/test_beachball.py", line 84, in test_Beachball Beachball(data_, outfile=ic.name) File "obspy/core/util/base.py", line 550, in __exit__ self.compare() File "obspy/core/util/base.py", line 570, in compare raise ImageComparisonException(msg) ImageComparisonException: Error: Image files did not match. RMS Value: 155.01257621 Expected: obspy/imaging/tests/images/bb_sumatra_mt.png Actual: /tmp/obspy-uSQzlp.png Difference: /tmp/obspy-uSQzlp-failed-diff.png Tolerance: 1
Traceback (most recent call last):
File "obspy/imaging/tests/test_mopad.py", line 74, in test_collection
fig.savefig(ic.name)
File "obspy/core/util/base.py", line 550, in __exit__
self.compare()
File "obspy/core/util/base.py", line 568, in compare
msg = compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 439, in compare_images
rms = calculate_rms(expectedImage, actualImage)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 369, in calculate_rms
"actual size {1}".format(expectedImage.shape, actualImage.shape))
ImageComparisonFailure: Image sizes do not match expected size: (600, 600, 3) actual size (1800, 1800, 3)
Traceback (most recent call last):
File "obspy/imaging/tests/test_waveform.py", line 268, in test_plotBinningError
tr.plot(outfile=ic.name)
File "obspy/core/util/base.py", line 550, in __exit__
self.compare()
File "obspy/core/util/base.py", line 568, in compare
msg = compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 407, in compare_images
raise Exception("Output image file %s is empty." % actual)
Exception: Output image file /tmp/obspy-VCS7q4.png is empty.
Traceback (most recent call last): File "obspy/imaging/tests/test_beachball.py", line 92, in test_BeachBallOutputFormats data = Beachball(fm, format='pdf') File "obspy/imaging/beachball.py", line 196, in Beachball width=plot_width, size=size, zorder=zorder) File "obspy/imaging/beachball.py", line 111, in Beach colors, p = plotDC(np1, size=size, xy=xy, width=width) File "obspy/imaging/beachball.py", line 612, in plotDC X = np.concatenate((X1, Xs1[0], X2, Xs2[0]), 1) AxisError: axis 1 is out of bounds for array of dimension 1
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2224, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.imaging.__init__
File "obspy/imaging/__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "obspy/imaging/__init__.py", line 35, in obspy.imaging.__init__
Failed example:
st.plot(color='gray', tick_format='%I:%M %p',
starttime=st[0].stats.starttime,
endtime=st[0].stats.starttime+20)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.imaging.__init__[3]>", line 3, in <module>
endtime=st[0].stats.starttime+20)
File "obspy/core/stream.py", line 1084, in plot
return waveform.plotWaveform(*args, **kwargs)
File "obspy/imaging/waveform.py", line 255, in plotWaveform
self.plot(*args, **kwargs)
File "obspy/imaging/waveform.py", line 353, in plot
axisbg=self.background_color)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/figure.py", line 1257, in add_subplot
a = subplot_class_factory(projection_class)(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_subplots.py", line 77, in __init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 541, in __init__
self.update(kwargs)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 888, in update
for k, v in props.items()]
File "/usr/local/lib/python2.7/dist-packages/matplotlib/artist.py", line 881, in _update_property
raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property axisbg
----------------------------------------------------------------------
File "obspy/imaging/__init__.py", line 109, in obspy.imaging.__init__
Failed example:
Beachball(np1) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.imaging.__init__[11]>", line 1, in <module>
Beachball(np1) #doctest: +ELLIPSIS
File "obspy/imaging/beachball.py", line 196, in Beachball
width=plot_width, size=size, zorder=zorder)
File "obspy/imaging/beachball.py", line 111, in Beach
colors, p = plotDC(np1, size=size, xy=xy, width=width)
File "obspy/imaging/beachball.py", line 612, in plotDC
X = np.concatenate((X1, Xs1[0], X2, Xs2[0]), 1)
AxisError: axis 1 is out of bounds for array of dimension 1
----------------------------------------------------------------------
File "obspy/imaging/__init__.py", line 128, in obspy.imaging.__init__
Failed example:
Beachball(mt) #doctest: +ELLIPSIS
Expected:
<matplotlib.figure.Figure object at 0x...>
Got:
<Figure size 200x200 with 1 Axes>
----------------------------------------------------------------------
File "obspy/imaging/__init__.py", line 147, in obspy.imaging.__init__
Failed example:
beach1 = Beach(np1, xy=(-70, 80), width=30)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.imaging.__init__[19]>", line 1, in <module>
beach1 = Beach(np1, xy=(-70, 80), width=30)
File "obspy/imaging/beachball.py", line 111, in Beach
colors, p = plotDC(np1, size=size, xy=xy, width=width)
File "obspy/imaging/beachball.py", line 612, in plotDC
X = np.concatenate((X1, Xs1[0], X2, Xs2[0]), 1)
AxisError: axis 1 is out of bounds for array of dimension 1
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 196, in test_plotComplexGapFewSamples st = self._createStream(start, start + 3600 * 3 / 4, 5.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 283, in test_plotDefaultSection st += self._createStream(start, start + 3600, 100) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 174, in test_plotComplexGapManySamples st = self._createStream(start, start + 3600 * 3 / 4, 500.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 69, in test_dataRemainsUnchanged st = self._createStream(UTCDateTime(0), UTCDateTime(1000), 1) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 297, in test_plotAzimSection st += self._createStream(start, start + 3600, 100) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 99, in test_plotSameTraceDifferentSampleRates st = self._createStream(start, start + 10, 1.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 113, in test_plotOneHourManySamples st = self._createStream(start, start + 3600, 1000.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 127, in test_plotOneHourFewSamples st = self._createStream(start, start + 3600, 10.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last):
File "obspy/imaging/tests/test_waveform.py", line 217, in test_plotMultipleTraces
st.plot(outfile=ic.name, automerge=False)
File "obspy/core/util/base.py", line 550, in __exit__
self.compare()
File "obspy/core/util/base.py", line 568, in compare
msg = compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 407, in compare_images
raise Exception("Output image file %s is empty." % actual)
Exception: Output image file /tmp/obspy-dkkW9j.png is empty.
Traceback (most recent call last): File "obspy/imaging/tests/test_beachball.py", line 229, in test_collection ax.add_collection(Beach(t, width=30, xy=(x, y), linewidth=.6)) File "obspy/imaging/beachball.py", line 111, in Beach colors, p = plotDC(np1, size=size, xy=xy, width=width) File "obspy/imaging/beachball.py", line 612, in plotDC X = np.concatenate((X1, Xs1[0], X2, Xs2[0]), 1) AxisError: axis 1 is out of bounds for array of dimension 1
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 142, in test_plotSimpleGapManySamples st = self._createStream(start, start + 3600 * 3 / 4, 500.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/imaging/tests/test_waveform.py", line 158, in test_plotSimpleGapFewSamples st = self._createStream(start, start + 3600 * 3 / 4, 5.0) File "obspy/imaging/tests/test_waveform.py", line 45, in _createStream data = np.empty(number_of_samples) TypeError: 'float' object cannot be interpreted as an index
Traceback (most recent call last):
File "obspy/imaging/tests/test_spectrogram.py", line 45, in test_spectogram
show=False)
File "obspy/core/util/base.py", line 550, in __exit__
self.compare()
File "obspy/core/util/base.py", line 568, in compare
msg = compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 439, in compare_images
rms = calculate_rms(expectedImage, actualImage)
File "/usr/local/lib/python2.7/dist-packages/matplotlib/testing/compare.py", line 369, in calculate_rms
"actual size {1}".format(expectedImage.shape, actualImage.shape))
ImageComparisonFailure: Image sizes do not match expected size: (600, 800, 3) actual size (480, 640, 3)
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.mseed.__init__ File "obspy/mseed/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "obspy/mseed/__init__.py", line 56, in obspy.mseed.__init__ Failed example: print(st[0].data) Expected: [2787 2776 2774 ..., 2850 2853 2853] Got: [2787 2776 2774 ... 2850 2853 2853]
Traceback (most recent call last):
File "obspy/realtime/tests/test_rttrace.py", line 177, in test_missingOrWrongArgumentInRtProcess
rt_trace.append(trace)
File "obspy/realtime/rttrace.py", line 273, in append
trace.data = func(trace, **options)
File "obspy/realtime/signal.py", line 79, in scale
trace.data *= factor
TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('int64') with casting rule 'same_kind'
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.realtime.rttrace.RtTrace File "obspy/realtime/rttrace.py", line 35, in RtTrace ---------------------------------------------------------------------- File "obspy/realtime/rttrace.py", line 73, in obspy.realtime.rttrace.RtTrace Failed example: print(epicentral_distance) Expected: 30.0855 Got: 30.085527 ---------------------------------------------------------------------- File "obspy/realtime/rttrace.py", line 103, in obspy.realtime.rttrace.RtTrace Failed example: print(peak) Expected: 0.136404 Got: 0.13640444
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.sac.__init__ File "obspy/sac/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "obspy/sac/__init__.py", line 51, in obspy.sac.__init__ Failed example: st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE Expected: array([ -8.74227766e-08, -3.09016973e-01,..., 3.09007347e-01], dtype=float32) Got: array([-8.74227766e-08, -3.09016973e-01, -5.87785363e-01, -8.09017122e-01, -9.51056600e-01, -1.00000000e+00, -9.51056302e-01, -8.09016585e-01, -5.87784529e-01, -3.09016049e-01, 1.12851990e-06, 3.09018195e-01, 5.87786376e-01, 8.09017897e-01, 9.51057017e-01, 1.00000000e+00, 9.51056063e-01, 8.09016109e-01, 5.87783873e-01, 3.09015274e-01, -1.93119831e-06, -3.09018940e-01, -5.87787032e-01, -8.09018373e-01, -9.51057255e-01, -1.00000000e+00, -9.51055706e-01, -8.09015334e-01, -5.87782860e-01, -3.09014052e-01, 3.21071411e-06, 3.09020162e-01, 5.87788045e-01, 8.09019089e-01, 9.51057673e-01, 1.00000000e+00, 9.51055288e-01, 8.09014559e-01, 5.87781847e-01, 3.09012860e-01, -4.49022991e-06, -3.09021384e-01, -5.87789118e-01, -8.09019864e-01, -9.51058090e-01, -1.00000000e+00, -9.51054871e-01, -8.09013844e-01, -5.87780774e-01, -3.09011638e-01, 5.76974526e-06, 3.09022605e-01, 5.87790132e-01, 8.09020638e-01, 9.51058447e-01, 1.00000000e+00, 9.51054513e-01, 8.09013069e-01, 5.87779760e-01, 3.09010416e-01, -7.04926106e-06, -3.09023827e-01, -5.87791145e-01, -8.09021354e-01, -9.51058865e-01, -1.00000000e+00, -9.51054096e-01, -8.09012353e-01, -5.87778747e-01, -3.09009194e-01, 8.32877686e-06, 3.09025049e-01, 5.87792218e-01, 8.09022129e-01, 9.51059222e-01, 1.00000000e+00, 9.51053679e-01, 8.09011579e-01, 5.87777674e-01, 3.09007972e-01, -9.60829220e-06, -3.09026241e-01, -5.87793231e-01, -8.09022844e-01, -9.51059639e-01, -1.00000000e+00, -9.51053321e-01, -8.09010804e-01, -5.87776661e-01, -3.09006751e-01, 1.08878085e-05, 3.09027463e-01, 5.87792754e-01, 8.09022486e-01, 9.51059461e-01, 1.00000000e+00, 9.51053500e-01, 8.09011161e-01, 5.87777138e-01, 3.09007347e-01], dtype=float32)
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.seisan.__init__ File "obspy/seisan/__init__.py", line 1, in __init__ ---------------------------------------------------------------------- File "obspy/seisan/__init__.py", line 52, in obspy.seisan.__init__ Failed example: print(st[0].data) Expected: [ 492 519 542 ..., -6960 -6858 24000] Got: [ 492 519 542 ... -6960 -6858 24000]
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.sh.__init__ File "obspy/sh/__init__.py", line 0, in __init__ ---------------------------------------------------------------------- File "obspy/sh/__init__.py", line 52, in obspy.sh.__init__ Failed example: st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE Expected: array([ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ... -4.03387604e+01, -3.99515305e+01, -3.95423012e+01], dtype=float32) Got: array([ 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 9.999987e-05, 3.338366e+01, 6.641345e+01, 9.907165e+01, 1.313408e+02, 1.632039e+02, 1.946445e+02, 2.256463e+02, 2.561938e+02, 2.862716e+02, 3.158649e+02, 3.449595e+02, 3.735416e+02, 4.015977e+02, 4.291148e+02, 4.560807e+02, 4.824833e+02, 5.083111e+02, 5.335532e+02, 5.581991e+02, 5.822387e+02, 6.056627e+02, 6.284618e+02, 6.506277e+02, 6.721521e+02, 6.930278e+02, 7.132476e+02, 7.328047e+02, 7.516935e+02, 7.699081e+02, 7.874437e+02, 8.042954e+02, 8.204593e+02, 8.359318e+02, 8.507097e+02, 8.647904e+02, 8.781716e+02, 8.908519e+02, 9.028298e+02, 9.141045e+02, 9.246761e+02, 9.345443e+02, 9.437100e+02, 9.521742e+02, 9.599384e+02, 9.670044e+02, 9.733748e+02, 9.790523e+02, 9.840402e+02, 9.883419e+02, 9.919617e+02, 9.949040e+02, 9.971735e+02, 9.987755e+02, 9.997157e+02, 1.000000e+03, 9.996348e+02, 9.986266e+02, 9.969827e+02, 9.947104e+02, 9.918174e+02, 9.883117e+02, 9.842017e+02, 9.794961e+02, 9.742039e+02, 9.683343e+02, 9.618969e+02, 9.549014e+02, 9.473580e+02, 9.392769e+02, 9.306688e+02, 9.215444e+02, 9.119149e+02, 9.017914e+02, 8.911855e+02, 8.801086e+02, 8.685729e+02, 8.565902e+02, 8.441728e+02, 8.313329e+02, 8.180833e+02, 8.044363e+02, 7.904048e+02, 7.760018e+02, 7.612402e+02, 7.461334e+02, 7.306941e+02, 7.149359e+02, 6.988723e+02, 6.825165e+02, 6.658820e+02, 6.489823e+02, 6.318311e+02, 6.144420e+02, 5.968284e+02, 5.790043e+02, 5.609829e+02, 5.427780e+02, 5.244034e+02, 5.058723e+02, 4.871986e+02, 4.683954e+02, 4.494765e+02, 4.304553e+02, 4.113447e+02, 3.921585e+02, 3.729093e+02, 3.536106e+02, 3.342753e+02, 3.149161e+02, 2.955461e+02, 2.761774e+02, 2.568228e+02, 2.374949e+02, 2.182056e+02, 1.989673e+02, 1.797915e+02, 1.606902e+02, 1.416753e+02, 1.227577e+02, 1.039492e+02, 8.526044e+01, 6.670248e+01, 4.828622e+01, 3.002179e+01, 1.191969e+01, -6.009835e+00, -2.375724e+01, -4.131253e+01, -5.866658e+01, -7.581001e+01, -9.273368e+01, -1.094291e+02, -1.258876e+02, -1.421010e+02, -1.580611e+02, -1.737601e+02, -1.891906e+02, -2.043451e+02, -2.192169e+02, -2.337988e+02, -2.480843e+02, -2.620674e+02, -2.757417e+02, -2.891018e+02, -3.021419e+02, -3.148568e+02, -3.272417e+02, -3.392915e+02, -3.510022e+02, -3.623694e+02, -3.733889e+02, -3.840574e+02, -3.943714e+02, -4.043277e+02, -4.139235e+02, -4.231560e+02, -4.320230e+02, -4.405224e+02, -4.486523e+02, -4.564113e+02, -4.637978e+02, -4.708109e+02, -4.774497e+02, -4.837136e+02, -4.896024e+02, -4.951160e+02, -5.002545e+02, -5.050183e+02, -5.094081e+02, -5.134249e+02, -5.170696e+02, -5.203436e+02, -5.232486e+02, -5.257861e+02, -5.279585e+02, -5.297678e+02, -5.312165e+02, -5.323072e+02, -5.330428e+02, -5.334263e+02, -5.334611e+02, -5.331505e+02, -5.324981e+02, -5.315079e+02, -5.301838e+02, -5.285301e+02, -5.265509e+02, -5.242509e+02, -5.216347e+02, -5.187073e+02, -5.154734e+02, -5.119384e+02, -5.081075e+02, -5.039861e+02, -4.995798e+02, -4.948942e+02, -4.899351e+02, -4.847086e+02, -4.792205e+02, -4.734773e+02, -4.674849e+02, -4.612498e+02, -4.547784e+02, -4.480773e+02, -4.411532e+02, -4.340126e+02, -4.266623e+02, -4.191092e+02, -4.113603e+02, -4.034225e+02, -3.953027e+02, -3.870081e+02, -3.785457e+02, -3.699226e+02, -3.611463e+02, -3.522235e+02, -3.431619e+02, -3.339684e+02, -3.246504e+02, -3.152153e+02, -3.056700e+02, -2.960221e+02, -2.862787e+02, -2.764471e+02, -2.665348e+02, -2.565485e+02, -2.464957e+02, -2.363835e+02, -2.262190e+02, -2.160095e+02, -2.057618e+02, -1.954829e+02, -1.851799e+02, -1.748596e+02, -1.645292e+02, -1.541949e+02, -1.438638e+02, -1.335424e+02, -1.232373e+02, -1.129553e+02, -1.027023e+02, -9.248491e+01, -8.230938e+01, -7.218187e+01, -6.210864e+01, -5.209529e+01, -4.214787e+01, -3.227218e+01, -2.247388e+01, -1.275873e+01, -3.131806e+00, 6.401351e+00, 1.583551e+01, 2.516556e+01, 3.438632e+01, 4.349327e+01, 5.248148e+01, 6.134630e+01, 7.008325e+01, 7.868778e+01, 8.715596e+01, 9.548351e+01, 1.036665e+02, 1.117009e+02, 1.195831e+02, 1.273096e+02, 1.348769e+02, 1.422817e+02, 1.495208e+02, 1.565910e+02, 1.634897e+02, 1.702141e+02, 1.767615e+02, 1.831294e+02, 1.893154e+02, 1.953175e+02, 2.011336e+02, 2.067617e+02, 2.122001e+02, 2.174471e+02, 2.225013e+02, 2.273613e+02, 2.320260e+02, 2.364941e+02, 2.407648e+02, 2.448374e+02, 2.487110e+02, 2.523853e+02, 2.558598e+02, 2.591343e+02, 2.622086e+02, 2.650827e+02, 2.677568e+02, 2.702311e+02, 2.725060e+02, 2.745821e+02, 2.764599e+02, 2.781403e+02, 2.796240e+02, 2.809121e+02, 2.820058e+02, 2.829061e+02, 2.836146e+02, 2.841326e+02, 2.844617e+02, 2.846035e+02, 2.845599e+02, 2.843326e+02, 2.839238e+02, 2.833354e+02, 2.825696e+02, 2.816287e+02, 2.805150e+02, 2.792309e+02, 2.777791e+02, 2.761621e+02, 2.743825e+02, 2.724432e+02, 2.703470e+02, 2.680969e+02, 2.656956e+02, 2.631466e+02, 2.604527e+02, 2.576170e+02, 2.546431e+02, 2.515340e+02, 2.482932e+02, 2.449242e+02, 2.414301e+02, 2.378148e+02, 2.340815e+02, 2.302341e+02, 2.262761e+02, 2.222110e+02, 2.180428e+02, 2.137749e+02, 2.094114e+02, 2.049558e+02, 2.004119e+02, 1.957837e+02, 1.910748e+02, 1.862894e+02, 1.814311e+02, 1.765036e+02, 1.715112e+02, 1.664573e+02, 1.613463e+02, 1.561818e+02, 1.509675e+02, 1.457076e+02, 1.404056e+02, 1.350658e+02, 1.296917e+02, 1.242871e+02, 1.188560e+02, 1.134019e+02, 1.079290e+02, 1.024407e+02, 9.694056e+01, 9.143266e+01, 8.592022e+01, 8.040728e+01, 7.489719e+01, 6.939329e+01, 6.389946e+01, 5.841878e+01, 5.295506e+01, 4.751145e+01, 4.209107e+01, 3.669762e+01, 3.133389e+01, 2.600347e+01, 2.070927e+01, 1.545415e+01, 1.024153e+01, 5.073956e+00, -4.528630e-02, -5.113564e+00, -1.012829e+01, -1.508639e+01, -1.998558e+01, -2.482291e+01, -2.959606e+01, -3.430275e+01, -3.894025e+01, -4.350659e+01, -4.799920e+01, -5.241605e+01, -5.675522e+01, -6.101436e+01, -6.519180e+01, -6.928538e+01, -7.329341e+01, -7.721430e+01, -8.104610e+01, -8.478751e+01, -8.843670e+01, -9.199241e+01, -9.545336e+01, -9.881802e+01, -1.020854e+02, -1.052542e+02, -1.083233e+02, -1.112920e+02, -1.141590e+02, -1.169238e+02, -1.195853e+02, -1.221431e+02, -1.245964e+02, -1.269447e+02, -1.291877e+02, -1.313246e+02, -1.333554e+02, -1.352798e+02, -1.370975e+02, -1.388086e+02, -1.404127e+02, -1.419101e+02, -1.433009e+02, -1.445851e+02, -1.457630e+02, -1.468349e+02, -1.478013e+02, -1.486624e+02, -1.494188e+02, -1.500710e+02, -1.506197e+02, -1.510655e+02, -1.514092e+02, -1.516516e+02, -1.517935e+02, -1.518357e+02, -1.517794e+02, -1.516255e+02, -1.513750e+02, -1.510292e+02, -1.505891e+02, -1.500560e+02, -1.494311e+02, -1.487158e+02, -1.479115e+02, -1.470195e+02, -1.460413e+02, -1.449784e+02, -1.438323e+02, -1.426046e+02, -1.412969e+02, -1.399108e+02, -1.384480e+02, -1.369102e+02, -1.352992e+02, -1.336167e+02, -1.318646e+02, -1.300446e+02, -1.281586e+02, -1.262085e+02, -1.241962e+02, -1.221236e+02, -1.199925e+02, -1.178052e+02, -1.155633e+02, -1.132691e+02, -1.109245e+02, -1.085314e+02, -1.060920e+02, -1.036081e+02, -1.010821e+02, -9.851581e+01, -9.591125e+01, -9.327070e+01, -9.059598e+01, -8.788938e+01, -8.515289e+01, -8.238844e+01, -7.959832e+01, -7.678439e+01, -7.394889e+01, -7.109379e+01, -6.822102e+01, -6.533281e+01, -6.243098e+01, -5.951776e+01, -5.659503e+01, -5.366467e+01, -5.072888e+01, -4.778937e+01, -4.484832e+01, -4.190754e+01, -3.896879e+01, -3.603420e+01, -3.310539e+01, -3.018443e+01, -2.727300e+01, -2.437280e+01, -2.148581e+01, -1.861353e+01, -1.575791e+01, -1.292050e+01, -1.010287e+01, -7.306848e+00, -4.533814e+00, -1.785544e+00, 9.365342e-01, 3.631025e+00, 6.296255e+00, 8.930993e+00, 1.153364e+01, 1.410293e+01, 1.663764e+01, 1.913626e+01, 2.159774e+01, 2.402068e+01, 2.640396e+01, 2.874655e+01, 3.104715e+01, 3.330486e+01, 3.551849e+01, 3.768711e+01, 3.980988e+01, 4.188569e+01, 4.391383e+01, 4.589332e+01, 4.782344e+01, 4.970349e+01, 5.153262e+01, 5.331029e+01, 5.503572e+01, 5.670840e+01, 5.832783e+01, 5.989335e+01, 6.140462e+01, 6.286109e+01, 6.426241e+01, 6.560828e+01, 6.689828e+01, 6.813223e+01, 6.930978e+01, 7.043080e+01, 7.149516e+01, 7.250264e+01, 7.345325e+01, 7.434686e+01, 7.518349e+01, 7.596322e+01, 7.668604e+01, 7.735207e+01, 7.796144e+01, 7.851433e+01, 7.901096e+01, 7.945152e+01, 7.983635e+01, 8.016570e+01, 8.043991e+01, 8.065939e+01, 8.082452e+01, 8.093573e+01, 8.099349e+01, 8.099830e+01, 8.095068e+01, 8.085117e+01, 8.070037e+01, 8.049888e+01, 8.024734e+01, 7.994638e+01, 7.959673e+01, 7.919907e+01, 7.875417e+01, 7.826274e+01, 7.772560e+01, 7.714354e+01, 7.651736e+01, 7.584795e+01, 7.513612e+01, 7.438281e+01, 7.358889e+01, 7.275525e+01, 7.188288e+01, 7.097267e+01, 7.002564e+01, 6.904277e+01, 6.802498e+01, 6.697335e+01, 6.588885e+01, 6.477255e+01, 6.362548e+01, 6.244863e+01, 6.124314e+01, 6.001001e+01, 5.875037e+01, 5.746527e+01, 5.615575e+01, 5.482299e+01, 5.346798e+01, 5.209193e+01, 5.069588e+01, 4.928088e+01, 4.784815e+01, 4.639867e+01, 4.493367e+01, 4.345417e+01, 4.196125e+01, 4.045609e+01, 3.893969e+01, 3.741326e+01, 3.587782e+01, 3.433439e+01, 3.278417e+01, 3.122812e+01, 2.966741e+01, 2.810305e+01, 2.653602e+01, 2.496747e+01, 2.339833e+01, 2.182973e+01, 2.026262e+01, 1.869794e+01, 1.713679e+01, 1.558004e+01, 1.402876e+01, 1.248384e+01, 1.094616e+01, 9.416759e+00, 7.896429e+00, 6.386178e+00, 4.886823e+00, 3.399170e+00, 1.924178e+00, 4.625617e-01, -9.847549e-01, -2.417034e+00, -3.833552e+00, -5.233443e+00, -6.616073e+00, -7.980615e+00, -9.326418e+00, -1.065285e+01, -1.195914e+01, -1.324475e+01, -1.450896e+01, -1.575120e+01, -1.697090e+01, -1.816757e+01, -1.934050e+01, -2.048925e+01, -2.161332e+01, -2.271222e+01, -2.378559e+01, -2.483281e+01, -2.585355e+01, -2.684742e+01, -2.781403e+01, -2.875311e+01, -2.966418e+01, -3.054700e+01, -3.140128e+01, -3.222675e+01, -3.302323e+01, -3.379036e+01, -3.452802e+01, -3.523600e+01, -3.591415e+01, -3.656237e+01, -3.718045e+01, -3.776833e+01, -3.832594e+01, -3.885322e+01, -3.935016e+01, -3.981667e+01, -4.025278e+01, -4.065853e+01, -4.103395e+01, -4.137911e+01, -4.169406e+01, -4.197891e+01, -4.223377e+01, -4.245879e+01, -4.265413e+01, -4.281992e+01, -4.295636e+01, -4.306367e+01, -4.314207e+01, -4.319178e+01, -4.321307e+01, -4.320619e+01, -4.317144e+01, -4.310912e+01, -4.301954e+01, -4.290302e+01, -4.275992e+01, -4.259060e+01, -4.239541e+01, -4.217473e+01, -4.192899e+01, -4.165858e+01, -4.136391e+01, -4.104543e+01, -4.070354e+01, -4.033876e+01, -3.995153e+01, -3.954230e+01], dtype=float32)
Traceback (most recent call last): File "obspy/signal/tests/test_freqattributes.py", line 132, in test_logcep self.n, 'Hamming') File "obspy/signal/freqattributes.py", line 320, in logcep m, a, b = logbankm(p, nfft, fs, w) File "obspy/signal/freqattributes.py", line 279, in logbankm r = np.append(fp[k2:k4 + 2], 1 + fp[1:k3 + 1]) - 1 TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/signal/tests/test_trigger.py", line 364, in test_coincidenceTriggerWithSimilarityChecking similarity_threshold=similarity_thresholds) File "obspy/signal/trigger.py", line 619, in coincidenceTrigger tmp_triggers = triggerOnset(tr.data, thr_on, thr_off, **kwargs) File "obspy/signal/trigger.py", line 347, in triggerOnset of.extend(ind2[np.diff(ind2) > 1].tolist()) IndexError: boolean index did not match indexed array along dimension 0; dimension is 3395 but corresponding boolean dimension is 3394
Traceback (most recent call last): File "obspy/signal/tests/test_trigger.py", line 145, in test_coincidenceTrigger lta=10) File "obspy/signal/trigger.py", line 619, in coincidenceTrigger tmp_triggers = triggerOnset(tr.data, thr_on, thr_off, **kwargs) File "obspy/signal/trigger.py", line 347, in triggerOnset of.extend(ind2[np.diff(ind2) > 1].tolist()) IndexError: boolean index did not match indexed array along dimension 0; dimension is 1935 but corresponding boolean dimension is 1934
Traceback (most recent call last): File "obspy/signal/tests/test_sonic.py", line 168, in test_array_transff_freqslowness fstep, coordsys='xy') File "obspy/signal/array_analysis.py", line 829, in array_transff_freqslowness transff = np.empty((nsx, nsy)) TypeError: 'numpy.float64' object cannot be interpreted as an index
Traceback (most recent call last): File "obspy/signal/tests/test_trigger.py", line 103, in test_triggerOnset picks = triggerOnset(cft, 1.5, 1.0, max_len=50) File "obspy/signal/trigger.py", line 347, in triggerOnset of.extend(ind2[np.diff(ind2) > 1].tolist()) IndexError: boolean index did not match indexed array along dimension 0; dimension is 402 but corresponding boolean dimension is 401
Traceback (most recent call last): File "obspy/signal/tests/test_calibration.py", line 57, in test_relcalUsingTraces save_data=False) File "obspy/signal/calibration.py", line 88, in relcalstack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) File "obspy/signal/calibration.py", line 221, in spectral_helper thisX = x[ind[i]:ind[i] + NFFT] TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "obspy/signal/tests/test_sonic.py", line 201, in test_array_transff_wavenumber transff = array_transff_wavenumber(coords, klim, kstep, coordsys='xy') File "obspy/signal/array_analysis.py", line 775, in array_transff_wavenumber transff = np.empty((nkx, nky)) TypeError: 'numpy.float64' object cannot be interpreted as an index
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.signal.invsim.cosTaper File "obspy/signal/invsim.py", line 44, in cosTaper ---------------------------------------------------------------------- File "obspy/signal/invsim.py", line 78, in obspy.signal.invsim.cosTaper Failed example: ( tap3[npts*p/2.:npts*(1-p/2.)]==np.ones(npts*(1-p)) ).all() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1315, in __run compileflags, 1) in test.globs File "<doctest obspy.signal.invsim.cosTaper[6]>", line 1, in <module> ( tap3[npts*p/2.:npts*(1-p/2.)]==np.ones(npts*(1-p)) ).all() TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 2224, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for obspy.signal.cross_correlation.templatesMaxSimilarity File "obspy/signal/cross_correlation.py", line 422, in templatesMaxSimilarity ---------------------------------------------------------------------- File "obspy/signal/cross_correlation.py", line 452, in obspy.signal.cross_correlation.templatesMaxSimilarity Failed example: print templatesMaxSimilarity(st, t, [templ]) Expected: 0.922536411468 Got: 0.922536411467628
Traceback (most recent call last): File "obspy/signal/tests/test_calibration.py", line 32, in test_relcal_sts2_vs_unknown save_data=False) File "obspy/signal/calibration.py", line 88, in relcalstack spectral_helper(tr1, tr1, NFFT=nfft, Fs=sampfreq, noverlap=noverlap) File "obspy/signal/calibration.py", line 221, in spectral_helper thisX = x[ind[i]:ind[i] + NFFT] TypeError: slice indices must be integers or None or have an __index__ method