Merge pull request #871 in CASA/casa from CAS-11734 to master
* commit 'd5d125e306416d53d1a0ca504acddf514ca854eb':
Fix compiler warning
Adds unit tests that checks the phantom SPWs are treated correctly by getChannels()
Fix typo and simplify logic
Support calling getChannels() for "phantom" SPWs
Revert "Workaround issue with CAS-11734: getChannels() throws if phantom SPWs are present"
Adds unit tests that checks the phantom SPWs are treated correctly by getChannels()
The unit test creates a synthethic MS with an extra SPW which is
not references by the Data Description subtable.
It checks that the channels seen by the upper TVI are correct.
Fixes partially CAS-11734
Fix typo and simplify logic
The loop on spw has been removed, since the only goal
was to check that the spectralWindowID is less that the
length of the spectral window subtable .
Fixes partially CAS-11734
Support calling getChannels() for "phantom" SPWs
Calling getChannels() for SPWs that do not appear in the
DataDescription table (also called phantoms) caused an
exception due to the missing polarization entry in the
DataDescription table. This is supported now by returning
-1 in getPolarizationID() and supporting that value in the
makeChannelSelectorC() function.