Commit 44e9d7bd authored by thomas.forbriger's avatar thomas.forbriger
Browse files

tscollect [FIX]: fix TimeSeriesCollection.trim_to_date()

parent d7b83611
......@@ -203,9 +203,9 @@ namespace ts {
long int index_offset=wid2isample(header, begin);
TSXX_assert(index_offset >= 0,
"inconsistent header data");
TSXX_assert(index_offset > header.nsamples,
TSXX_assert(index_offset < header.nsamples,
"time series does not overlap with others");
i_series->, index_offset);
i_series->header.nsamples -= index_offset;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment