Skip to content
Snippets Groups Projects
Commit e8c82ed1 authored by Andre Offringa's avatar Andre Offringa
Browse files

Bug 1491: Fix of somewhat confusing side effect of the dilation operation when...

Bug 1491: Fix of somewhat confusing side effect of the dilation operation when the Equal polarisation setting was removed. Reported by A. Biggs.
parent 5449dfd7
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ namespace rfiStrategy {
void StatisticalFlagAction::Perform(ArtifactSet &artifacts, class ProgressListener &)
{
TimeFrequencyData &data = artifacts.ContaminatedData();
if(data.MaskCount() > 1)
throw std::runtime_error("Error: the statistical flag action (dilation operation) can only be applied on data with a single mask. Therefore, it should be placed 'under' a Set all polarization equal-operation, or inside a For each polarization action.");
Mask2DPtr mask = Mask2D::CreateCopy(data.GetSingleMask());
StatisticalFlagger::EnlargeFlags(mask, _enlargeTimeSize, _enlargeFrequencySize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment