Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
ift
resolve
Commits
7e7bb511
Commit
7e7bb511
authored
3 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Observation: Add flag_baseline()
parent
c847df14
No related branches found
No related tags found
1 merge request
!29
Allow frequency domain to be defined on log scale
Pipeline
#110117
failed
3 years ago
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resolve/data/observation.py
+1
-1
1 addition, 1 deletion
resolve/data/observation.py
with
1 addition
and
1 deletion
resolve/data/observation.py
+
1
−
1
View file @
7e7bb511
...
@@ -452,7 +452,7 @@ class Observation(BaseObservation):
...
@@ -452,7 +452,7 @@ class Observation(BaseObservation):
ind
=
np
.
logical_and
(
ant1
==
ant1_index
,
ant2
==
ant2_index
)
ind
=
np
.
logical_and
(
ant1
==
ant1_index
,
ant2
==
ant2_index
)
wgt
=
self
.
_weight
.
copy
()
wgt
=
self
.
_weight
.
copy
()
wgt
[:,
ind
]
=
0.
wgt
[:,
ind
]
=
0.
print
(
"
INFO: Flag baseline {ant1_index}-{ant2_index}, {np.sum(ind)}/{obs.nrows} rows flagged.
"
)
print
(
f
"
INFO: Flag baseline
{
ant1_index
}
-
{
ant2_index
}
,
{
np
.
sum
(
ind
)
}
/
{
obs
.
nrows
}
rows flagged.
"
)
return
Observation
(
self
.
_antpos
,
self
.
_vis
,
wgt
,
self
.
_polarization
,
self
.
_freq
,
self
.
_direction
)
return
Observation
(
self
.
_antpos
,
self
.
_vis
,
wgt
,
self
.
_polarization
,
self
.
_freq
,
self
.
_direction
)
@property
@property
...
...
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