Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
booster-bpms
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
gui
booster-bpms
Commits
0e6e7177
Commit
0e6e7177
authored
2 years ago
by
Giacomo Strangolino
Browse files
Options
Downloads
Patches
Plain Diff
removed debug prints
parent
d2af8639
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bpmplot.cpp
+2
-11
2 additions, 11 deletions
src/bpmplot.cpp
with
2 additions
and
11 deletions
src/bpmplot.cpp
+
2
−
11
View file @
0e6e7177
...
...
@@ -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
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment