Closed deancarloz closed 11 months ago
Hi, Thanks for including the time series in your bug report. Will have a look at it.
The following code reproduces and visualizes the reported issue using qats
version 4.11.1:
from qats import TimeSeries
import matplotlib.pyplot as plt
import pandas as pd
# file with time series
fn = 'example.peaks.csv'
# load from csv using pandas, extract time and response arrays
t, x = pd.read_csv(fn).values.T
# initiate TimeSeries instance
ts = TimeSeries('FX', t, x)
# extract global maxima
maxima, maxtimes = ts.maxima(rettime=True)
# visualize time series and maxima
ts.plot()
ax = plt.gca()
ax.scatter(maxtimes, maxima, marker='o', s=10, color='tab:red')
ax.set_axisbelow(True)
Hi,
Thanks, not sure why it does that. Any ways I cannot fit Weibull when this happens
Hi, When selecting peaks (global maxima) array returned contains the first position as zero.
I have added the specific time series that returns this results. Its strange because I have other time series for the same variable that were generated by other seed and this bug won't come up. example peaks.csv