Skip to content
Snippets Groups Projects
Commit 0e6e7177 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

removed debug prints

parent d2af8639
No related branches found
No related tags found
No related merge requests found
......@@ -216,20 +216,11 @@ void BpmPlot::onUpdate(const CuData &da) {
QVector<double > y;
const std::vector<double>& yd = da["value"].toDoubleVector();
m_datamap[cc] = y;
if(m_diff_mode && m_ref && m_ref->size() == yd.size())
printf("using diff mode\n");
else {
printf("not using diff mode: m_diff_mode: %s m_ref %p\n", m_diff_mode ? "TRUE" : "FALSE", m_ref);
if(m_ref && m_ref->size() != yd.size())
printf("not using diff mode because of different sizes in curves ref %d yd %d\n",
m_ref->size(), yd.size());
}
bool diff = m_diff_mode && m_ref && m_ref->size() == yd.size();
for(size_t i = 0; i < yd.size(); i++) {
m_datamap[cc] << yd[i]; // actual data in m_datamap
// actual data or diff in curve
(m_diff_mode && m_ref && m_ref->size() == yd.size()) ? y << m_ref->sample(i).ry() - yd[i] : y << yd[i];
diff ? y << m_ref->sample(i).ry() - yd[i] : y << yd[i];
}
if(m_x_data.size() != (int) y.size())
......
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