Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Aoflagger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcel Loose
Aoflagger
Commits
c7fef714
Commit
c7fef714
authored
2 years ago
by
André Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Fix -save-baseline
parent
fc3cae7a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
applications/rfigui.cpp
+2
-7
2 additions, 7 deletions
applications/rfigui.cpp
quality/operations.cpp
+2
-4
2 additions, 4 deletions
quality/operations.cpp
util/progress/stdoutreporter.h
+1
-13
1 addition, 13 deletions
util/progress/stdoutreporter.h
with
5 additions
and
24 deletions
applications/rfigui.cpp
+
2
−
7
View file @
c7fef714
...
...
@@ -159,13 +159,8 @@ static void run(int argc, char* argv[]) {
if
(
!
index
)
throw
std
::
runtime_error
(
"Baseline not found!"
);
controller
.
SetImageSetIndex
(
*
index
);
StdOutReporter
reporter
;
reporter
.
SignalFinished
().
connect
([
&
](
bool
success
)
{
std
::
cout
<<
"FINISH
\n
"
;
//controller.LoadCurrentTFDataFinish(success);
});
std
::
thread
thread
(
[
&
]()
{
controller
.
LoadCurrentTFDataAsync
(
reporter
);
});
thread
.
join
();
controller
.
LoadCurrentTFDataAsync
(
reporter
);
controller
.
LoadCurrentTFDataFinish
(
true
);
MaskedHeatMap
&
plot
=
controller
.
TFController
().
Plot
();
plot
.
SetShowOriginalMask
(
plotFlags
);
plot
.
SetShowXAxisDescription
(
true
);
...
...
This diff is collapsed.
Click to expand it.
quality/operations.cpp
+
2
−
4
View file @
c7fef714
...
...
@@ -210,8 +210,7 @@ void PrintPerBaselineStatistics(const std::string& kindName,
const
QualityTablesFormatter
::
StatisticKind
kind
=
QualityTablesFormatter
::
NameToKind
(
kindName
);
quality
::
FileContents
contents
=
quality
::
ReadAndCombine
(
filenames
,
false
);
quality
::
FileContents
contents
=
quality
::
ReadAndCombine
(
filenames
,
false
);
contents
.
statistics_collection
.
IntegrateBaselinesToOneChannel
();
const
std
::
vector
<
std
::
pair
<
unsigned
,
unsigned
>>&
baselines
=
contents
.
statistics_collection
.
BaselineStatistics
().
BaselineList
();
...
...
@@ -307,8 +306,7 @@ void PrintPerAntennaStatistics(const std::string& kindName,
const
QualityTablesFormatter
::
StatisticKind
kind
=
QualityTablesFormatter
::
NameToKind
(
kindName
);
quality
::
FileContents
contents
=
quality
::
ReadAndCombine
(
filenames
,
false
);
quality
::
FileContents
contents
=
quality
::
ReadAndCombine
(
filenames
,
false
);
contents
.
statistics_collection
.
IntegrateBaselinesToOneChannel
();
const
std
::
map
<
size_t
,
DefaultStatistics
>
stats
=
contents
.
statistics_collection
.
GetAntennaStatistics
();
...
...
This diff is collapsed.
Click to expand it.
util/progress/stdoutreporter.h
+
1
−
13
View file @
c7fef714
...
...
@@ -7,8 +7,6 @@
#include
<string>
#include
<iostream>
#include
<sigc++/signal.h>
class
StdOutReporter
final
:
public
ProgressListener
{
public:
void
OnStartTask
(
const
std
::
string
&
description
)
override
{
...
...
@@ -23,20 +21,10 @@ class StdOutReporter final : public ProgressListener {
std
::
cout
<<
'.'
<<
std
::
flush
;
}
}
void
OnFinish
()
override
{
std
::
cout
<<
"100
\n
"
;
_signalFinished
(
true
);
}
void
OnFinish
()
override
{
std
::
cout
<<
"100
\n
"
;
}
void
OnException
(
std
::
exception
&
thrown_exception
)
override
{
std
::
cerr
<<
"ERROR! "
<<
thrown_exception
.
what
()
<<
'\n'
;
_signalError
(
thrown_exception
.
what
());
_signalFinished
(
false
);
}
sigc
::
signal
<
void
,
bool
/*errors occurred? */
>&
SignalFinished
()
{
return
_signalFinished
;
}
sigc
::
signal
<
void
,
const
std
::
string
&>&
SignalError
()
{
return
_signalError
;
}
private
:
sigc
::
signal
<
void
,
bool
>
_signalFinished
;
sigc
::
signal
<
void
,
const
std
::
string
&>
_signalError
;
};
#endif // UTIL_PROGRESS_STD_OUT_REPORTER_H_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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