Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
DP3
Commits
4fd8c4df
Commit
4fd8c4df
authored
Sep 26, 2019
by
Tammo Jan Dijkema
Browse files
Options
Downloads
Patches
Plain Diff
Chose reference antenna more cleverly
parent
bdc8c9de
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!191
Refant
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDECal/TECConstraint.cc
+14
-1
14 additions, 1 deletion
DDECal/TECConstraint.cc
with
14 additions
and
1 deletion
DDECal/TECConstraint.cc
+
14
−
1
View file @
4fd8c4df
...
...
@@ -53,8 +53,21 @@ void ApproximateTECConstraint::initializeChild()
void
TECConstraintBase
::
applyReferenceAntenna
(
std
::
vector
<
std
::
vector
<
dcomplex
>
>&
solutions
)
const
{
//
TODO chose this more cleverly?
//
Choose reference antenna that has at least 20% channels unflagged
size_t
refAntenna
=
0
;
for
(;
refAntenna
!=
_nAntennas
;
++
refAntenna
)
{
size_t
nUnFlaggedChannels
=
0
;
// Only check flagged state for first direction
for
(
size_t
ch
=
0
;
ch
!=
_nChannelBlocks
;
++
ch
)
{
if
(
isfinite
(
solutions
[
0
][
refAntenna
*
_nDirections
]))
nUnFlaggedChannels
++
;
}
if
(
nUnFlaggedChannels
*
1.0
/
_nChannelBlocks
>
0.2
)
// Choose this refAntenna;
break
;
}
for
(
size_t
ch
=
0
;
ch
!=
_nChannelBlocks
;
++
ch
)
{
...
...
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