I’m new to obspy and python, so please forgive any foolishness on my part.
I’m trying to create a helicorder plot for a 24-hour miniseed file. My script works if I give st.plot “interval=15”, but it crashes if I give it “interval=10”. Here are the error messages.
Traceback (most recent call last):
File "/home/seisan/src/obspy/plot_heli-mseed.py", line 56, in <module>
st.plot(type='dayplot',
File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/core/stream.py", line 1161, in plot
return waveform.plot_waveform(*args, **kwargs)
File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/waveform.py", line 274, in plot_waveform
self.plot_day(*args, **kwargs)
File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/waveform.py", line 488, in plot_day
self.__dayplot_set_x_ticks(*args, **kwargs)
File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/obspy/imaging/waveform.py", line 1035, in __dayplot_set_x_ticks
ticks = np.linspace(0.0, max_value, count)
File "<__array_function__ internals>", line 5, in linspace
File "/home/seisan/anaconda3/envs/obspy/lib/python3.8/site-packages/numpy/core/function_base.py", line 120, in linspace
num = operator.index(num)
TypeError: 'float' object cannot be interpreted as an integer
I’m pretty sure I have previously created interval=10 plots with non-miniseed data, but I can’t find the script.
Any suggestions?