Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
i0mapmon
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
i0mapmon
Commits
7b6c8bf3
Commit
7b6c8bf3
authored
4 years ago
by
Giacomo Strangolino
Browse files
Options
Downloads
Patches
Plain Diff
unsetSources in multi reader
parent
e678d76a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/i0mapmon.cpp
+1
-1
1 addition, 1 deletion
src/i0mapmon.cpp
src/i0mmonplot.cpp
+10
-0
10 additions, 0 deletions
src/i0mmonplot.cpp
src/i0mmonplot.h
+1
-0
1 addition, 0 deletions
src/i0mmonplot.h
with
12 additions
and
1 deletion
src/i0mapmon.cpp
+
1
−
1
View file @
7b6c8bf3
...
...
@@ -117,7 +117,7 @@ void I0mapmon::applyWavelenX() {
w
->
setAutoDestroy
(
true
);
w
->
setTarget
(
tgt
);
w
->
execute
(
vals
);
qDebug
()
<<
__PRETTY_FUNCTION__
<<
"*W
OULD WRITE
ON* target"
<<
w
->
target
()
<<
"values"
<<
vals
;
qDebug
()
<<
__PRETTY_FUNCTION__
<<
"*W
RITING
ON* target"
<<
w
->
target
()
<<
"values"
<<
vals
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/i0mmonplot.cpp
+
10
−
0
View file @
7b6c8bf3
...
...
@@ -44,6 +44,10 @@ I0MMonPlot::I0MMonPlot(QWidget *parent, CumbiaPool *cup, const CuControlsFactory
setYAxisAutoscaleEnabled
(
false
);
}
I0MMonPlot
::~
I0MMonPlot
()
{
if
(
m_multiread_plu_i
)
m_multiread_plu_i
->
unsetSources
();
}
bool
I0MMonPlot
::
pluginLoaded
()
const
{
return
m_multiread_plu_i
!=
nullptr
;
}
...
...
@@ -107,6 +111,7 @@ void I0MMonPlot::setYBoundsAuto(bool a) {
void
I0MMonPlot
::
m_set_bounds
(
const
QVector
<
double
>
&
xv
,
const
QVector
<
double
>
&
yv
)
{
qDebug
()
<<
__PRETTY_FUNCTION__
<<
"y"
<<
m_ymin
<<
m_ymax
<<
"m_empty ? "
<<
m_empty
<<
yv
;
if
(
m_ymin
==
m_ymax
)
{
// auto scale Y
double
ylb
,
yub
;
const
auto
[
ym
,
yM
]
=
std
::
minmax_element
(
begin
(
yv
),
end
(
yv
));
...
...
@@ -129,6 +134,7 @@ void I0MMonPlot::m_set_bounds(const QVector<double> &xv, const QVector<double> &
setYLowerBound
(
ylb
);
if
(
yub
!=
yUpperBound
())
setYUpperBound
(
yub
);
qDebug
()
<<
__PRETTY_FUNCTION__
<<
"y"
<<
ylb
<<
"->"
<<
yub
<<
"ym, yM"
<<
*
ym
<<
*
yM
;
}
const
auto
[
xm
,
xM
]
=
std
::
minmax_element
(
begin
(
xv
),
end
(
xv
));
...
...
@@ -152,6 +158,7 @@ void I0MMonPlot::m_set_bounds(const QVector<double> &xv, const QVector<double> &
setXLowerBound
(
xlb
);
if
(
xub
!=
xUpperBound
())
setXUpperBound
(
xub
);
qDebug
()
<<
__PRETTY_FUNCTION__
<<
"x"
<<
xlb
<<
"->"
<<
xub
<<
"xm, xM"
<<
*
xm
<<
*
xM
<<
xv
;
}
...
...
@@ -163,6 +170,9 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
QVector
<
double
>
yv
,
xv
;
const
CuData
&
xd
=
dl
[
0
];
const
CuData
&
yd
=
dl
[
1
];
printf
(
"\e[1;33mI0MMonPlot::onDataReady xd %s\e[0m
\n
"
,
datos
(
xd
));
printf
(
"\e[0;33mI0MMonPlot::onDataReady yd %s\e[0m
\n
"
,
datos
(
yd
));
printf
(
"\e[1;35mx %s , y %s\e[0m
\n
"
,
vtoc2
(
xd
,
"value"
),
vtoc2
(
yd
,
"value"
));
if
(
xd
.
has
(
"data_format_str"
,
"vector"
))
{
// average
...
...
This diff is collapsed.
Click to expand it.
src/i0mmonplot.h
+
1
−
0
View file @
7b6c8bf3
...
...
@@ -15,6 +15,7 @@ class I0MMonPlot : public QuPlotBase
Q_OBJECT
public:
explicit
I0MMonPlot
(
QWidget
*
parent
,
CumbiaPool
*
cup
,
const
CuControlsFactoryPool
&
fpoo
);
~
I0MMonPlot
();
bool
pluginLoaded
()
const
;
...
...
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