Commits
1848 1848 | self.assertTrue( |
1849 1849 | (self.md.almaspws(fdm=True) == [0, 1, 2, 3]).all(), |
1850 1850 | 'Incorrect FDM windows' |
1851 1851 | ) |
1852 1852 | self.md.done() |
1853 1853 | |
1854 1854 | |
1855 1855 | def test_rxbands(self): |
1856 1856 | """CAS-13973 test rxbands() method""" |
1857 1857 | expec = [ |
1858 - | 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
1859 - | 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 |
1858 + | -1, -1, -1, -1, 7, 7, 7, 7, 7, 7, 7, 7, -1, -1, -1, -1, 7, 7, 7, 7, |
1859 + | 7, 7, 7, 7, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, 9, 9 |
1860 1860 | ] |
1861 1861 | self.md.open(rxband_ms) |
1862 1862 | self.assertTrue( |
1863 1863 | (self.md.rxbands() == expec).all(), |
1864 1864 | 'Incorrect result for rxbands()' |
1865 1865 | ) |
1866 1866 | self.assertTrue( |
1867 - | (self.md.rxbands([0, 29]) == [7, 9]).all(), |
1867 + | (self.md.rxbands([0, 29]) == [-1, 9]).all(), |
1868 1868 | 'Incorrect result for rxbands()' |
1869 1869 | ) |
1870 1870 | self.assertTrue( |
1871 1871 | (self.md.rxbands(29) == [9]).all(), |
1872 1872 | 'Incorrect result for rxbands()' |
1873 1873 | ) |
1874 1874 | self.md.done() |
1875 1875 | expec = [ |
1876 1876 | -1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, |
1877 1877 | 6, 6, 6, 6, 6, 6, 6, 6, -1, -1, -1, 6, 6, 6, 6, 6, 6, |