Skip to content
Snippets Groups Projects
Commit 3106b6a0 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

fix bug where the wrong datapoints where erased when reduing region

parent 299981a4
Branches
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ std::vector<eis::DataPoint> eis::reduceRegion(const std::vector<eis::DataPoint>& ...@@ -135,7 +135,7 @@ std::vector<eis::DataPoint> eis::reduceRegion(const std::vector<eis::DataPoint>&
eis::Log(eis::Log::DEBUG)<<"reduced range "<<start<<'-'<<end; eis::Log(eis::Log::DEBUG)<<"reduced range "<<start<<'-'<<end;
data.erase(data.begin(), data.begin()+start); data.erase(data.begin(), data.begin()+start);
data.erase(data.begin()+end+1, data.end()); data.erase(data.begin()+end+1-start, data.end());
return data; return data;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment