Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
e39e62a1
Commit
e39e62a1
authored
9 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #9344: Backported nicer AOFlaggerStep fix to 2.16
parent
aa212237
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/DP3/DPPP_AOFlag/include/DPPP_AOFlag/AOFlaggerStep.h
+3
-0
3 additions, 0 deletions
CEP/DP3/DPPP_AOFlag/include/DPPP_AOFlag/AOFlaggerStep.h
CEP/DP3/DPPP_AOFlag/src/AOFlaggerStep.cc
+22
-1
22 additions, 1 deletion
CEP/DP3/DPPP_AOFlag/src/AOFlaggerStep.cc
with
25 additions
and
1 deletion
CEP/DP3/DPPP_AOFlag/include/DPPP_AOFlag/AOFlaggerStep.h
+
3
−
0
View file @
e39e62a1
...
...
@@ -119,6 +119,9 @@ namespace LOFAR {
const
aoflagger
::
FlagMask
&
rfiMask
,
const
aoflagger
::
FlagMask
&
origMask
,
int
bl
);
// Format a number as kB, MB, etc.
static
void
formatBytes
(
std
::
ostream
&
,
double
);
// Fill the rfi strategy.
void
fillStrategy
();
...
...
This diff is collapsed.
Click to expand it.
CEP/DP3/DPPP_AOFlag/src/AOFlaggerStep.cc
+
22
−
1
View file @
e39e62a1
...
...
@@ -93,7 +93,28 @@ namespace LOFAR {
os
<<
" keepstatistics: "
<<
itsDoRfiStats
<<
std
::
endl
;
os
<<
" autocorr: "
<<
itsDoAutoCorr
<<
std
::
endl
;
os
<<
" nthreads (omp) "
<<
OpenMP
::
maxThreads
()
<<
std
::
endl
;
os
<<
" max memory used "
<<
itsMemoryNeeded
<<
std
::
endl
;
os
<<
" max memory used "
;
formatBytes
(
os
,
itsMemoryNeeded
);
os
<<
std
::
endl
;
}
void
AOFlaggerStep
::
formatBytes
(
std
::
ostream
&
os
,
double
bytes
)
{
int
exp
=
0
;
while
(
bytes
>=
1024
&&
exp
<
5
)
{
bytes
/=
1024
;
exp
++
;
}
uint
origPrec
=
os
.
precision
();
os
.
precision
(
1
);
if
(
exp
==
0
)
{
os
<<
fixed
<<
bytes
<<
" "
<<
"B"
;
}
else
{
os
<<
fixed
<<
bytes
<<
" "
<<
"KMGTPE"
[
exp
-
1
]
<<
"B"
;
}
os
.
precision
(
origPrec
);
}
void
AOFlaggerStep
::
updateInfo
(
const
DPInfo
&
infoIn
)
...
...
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