Skip to content
Snippets Groups Projects
Commit 7e7bb511 authored by Philipp Arras's avatar Philipp Arras
Browse files

fixup! Observation: Add flag_baseline()

parent c847df14
No related branches found
No related tags found
1 merge request!29Allow frequency domain to be defined on log scale
Pipeline #110117 failed
......@@ -452,7 +452,7 @@ class Observation(BaseObservation):
ind = np.logical_and(ant1 == ant1_index, ant2 == ant2_index)
wgt = self._weight.copy()
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)
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment