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

Bug 1491: Fix for bug reported by P. Serra, trying to flag on Stokes Q in a 2...

Bug 1491: Fix for bug reported by P. Serra, trying to flag on Stokes Q in a 2 polarization (XX,YY) set did not work.
parent dda1aced
No related branches found
No related tags found
No related merge requests found
...@@ -314,7 +314,7 @@ class TimeFrequencyData ...@@ -314,7 +314,7 @@ class TimeFrequencyData
return _flagging[0]; return _flagging[0];
else if(polarisation == YYPolarisation) else if(polarisation == YYPolarisation)
return _flagging[1]; return _flagging[1];
else if(polarisation == StokesIPolarisation) else if(polarisation == StokesIPolarisation || polarisation == StokesQPolarisation)
return GetSingleMask(); return GetSingleMask();
else if(polarisation == SinglePolarisation) else if(polarisation == SinglePolarisation)
throw BadUsageException("Requesting single polarisation mask from auto dipole information, which polarisation to return?"); throw BadUsageException("Requesting single polarisation mask from auto dipole information, which polarisation to return?");
...@@ -475,6 +475,9 @@ class TimeFrequencyData ...@@ -475,6 +475,9 @@ class TimeFrequencyData
data->SetGlobalMask(GetMask(polarisation)); data->SetGlobalMask(GetMask(polarisation));
break; break;
case StokesQPolarisation: case StokesQPolarisation:
data= new TimeFrequencyData(StokesQPolarisation, GetStokesQFromDipole(0, 2), GetStokesQFromDipole(1, 3));
data->SetGlobalMask(GetMask(polarisation));
break;
case StokesUPolarisation: case StokesUPolarisation:
case StokesVPolarisation: case StokesVPolarisation:
case XYPolarisation: case XYPolarisation:
......
...@@ -75,7 +75,7 @@ namespace rfiStrategy { ...@@ -75,7 +75,7 @@ namespace rfiStrategy {
// There is only one polarisation in the contaminated data; just run all childs // There is only one polarisation in the contaminated data; just run all childs
ActionBlock::Perform(artifacts, progress); ActionBlock::Perform(artifacts, progress);
} }
else if(oldContaminatedData.Polarisation() == DipolePolarisation && isDecompositionSelected()) if(isDecompositionSelected())
{ {
performStokesIteration(artifacts, progress); performStokesIteration(artifacts, progress);
} }
......
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