Skip to content
Snippets Groups Projects
Commit b346e9df authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #6760: Fixed typo: flagsPerChanel -> flagsPerChannel

parent 32416a63
No related branches found
No related tags found
No related merge requests found
...@@ -72,25 +72,25 @@ TEST(convertFlagsToChannelFlags) ...@@ -72,25 +72,25 @@ TEST(convertFlagsToChannelFlags)
inputFlags[1].include(100, 600); // E. Second station (10, 150) inputFlags[1].include(100, 600); // E. Second station (10, 150)
// The converted channel flags // The converted channel flags
MultiDimArray<LOFAR::SparseSet<unsigned>, 1> flagsPerChanel( MultiDimArray<LOFAR::SparseSet<unsigned>, 1> flagsPerChannel(
boost::extents[parset.settings.antennaFields.size()]); boost::extents[parset.settings.antennaFields.size()]);
// ****** perform the translation // ****** perform the translation
CorrelatorStep::Flagger::convertFlagsToChannelFlags(parset, inputFlags, flagsPerChanel); CorrelatorStep::Flagger::convertFlagsToChannelFlags(parset, inputFlags, flagsPerChannel);
// ****** // ******
//validate the corner cases //validate the corner cases
CHECK(0 == flagsPerChanel[0].getRanges()[0].begin && CHECK(0 == flagsPerChannel[0].getRanges()[0].begin &&
16 == flagsPerChanel[0].getRanges()[0].end); //A. 16 == flagsPerChannel[0].getRanges()[0].end); //A.
CHECK(17 == flagsPerChanel[0].getRanges()[1].begin && CHECK(17 == flagsPerChannel[0].getRanges()[1].begin &&
33 == flagsPerChanel[0].getRanges()[1].end); //B. 33 == flagsPerChannel[0].getRanges()[1].end); //B.
CHECK(48 == flagsPerChanel[0].getRanges()[2].begin && CHECK(48 == flagsPerChannel[0].getRanges()[2].begin &&
131 == flagsPerChanel[0].getRanges()[2].end); //C. 131 == flagsPerChannel[0].getRanges()[2].end); //C.
CHECK(235 == flagsPerChanel[0].getRanges()[3].begin && CHECK(235 == flagsPerChannel[0].getRanges()[3].begin &&
257 == flagsPerChanel[0].getRanges()[3].end); //D. 257 == flagsPerChannel[0].getRanges()[3].end); //D.
CHECK(10 == flagsPerChanel[1].getRanges()[0].begin && CHECK(10 == flagsPerChannel[1].getRanges()[0].begin &&
150 == flagsPerChanel[1].getRanges()[0].end); //E. 150 == flagsPerChannel[1].getRanges()[0].end); //E.
} }
TEST(propagateFlags) TEST(propagateFlags)
......
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