You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import obspy
from obspy.seishub.client import Client
c = Client("http://teide.geophysik.uni-muenchen.de:8080")
start = obspy.UTCDateTime(2008,1,1,12,00,00)
end = start + 10
st = c.waveform.getWaveform("BW", "MANZ", "", "_", start, end)
Enter username for SeisHub at teide.geophysik.uni-muenchen.de:8080: admin
Enter password for admin in SeisHub at teide.geophysik.uni-muenchen.de:8080:
st.plot()
Traceback (most recent call last):
File "", line 1, in
File "c:\users\robert\workspace\obspy\obspy.core\trunk\obspy\core\stream.py", line 306, in plot
waveform.plotWaveform(self, *_kwargs)
File "c:\users\robert\workspace\obspy\obspy.imaging\trunk\obspy\imaging\waveform.py", line 119, in plotWaveform
endtime=endtime)
File "c:\users\robert\workspace\obspy\obspy.imaging\trunk\obspy\imaging\waveform.py", line 379, in _getMinMaxList
maxlist.append(_i.data[int(start) : int(end)].max())
ValueError: zero-size array to ufunc.reduce without identity
}}}
The text was updated successfully, but these errors were encountered:
[krischer](In [577]) - add method for Traces and therefore all depending methods like merge, ... now return a masked array if it contains NaNs. In addition it now set the stats.npts attribute to the number of samples in the Trace excluding NaNs. Please check whether it breaks anything.
This required some changes in Trace methods (e.g. the len(Trace) now returns the number of not masked samples) and also some changes in the tests.
{{{
The text was updated successfully, but these errors were encountered: