Public Member Functions | |
def | setUpMS |
def | resetMS |
def | get_last_history_line |
def | check_history |
def | check_eq |
Public Attributes | |
inpms |
Definition at line 21 of file test_setjy.py.
def tests.test_setjy.SetjyUnitTestBase.check_eq | ( | self, | |
val, | |||
expval, | |||
tol = None |
|||
) |
Checks that val matches expval within tol.
Definition at line 93 of file test_setjy.py.
Referenced by tests.test_setjy.test_ModImage.test1_UBandModelQithQBandMS(), tests.test_setjy.test_MultipleObservations.test2_MultipleObservationOldModel(), tests.test_setjy.test_SingleObservation.test2_SingleObservationSelectByChan(), tests.test_setjy.test_SingleObservation.test3_SingleObservationNewModel(), tests.test_uvcontsub3.combspw.test_combspw(), tests.test_uvcontsub.combspw.test_combspw(), tests.test_uvcontsub3.fourth.test_fourth(), tests.test_uvcontsub.fourth.test_fourth(), tests.test_uvcontsub3.knowncombspw.test_knowncombspw(), tests.test_uvcontsub3.zeroth.test_zeroth(), and tests.test_uvcontsub.zeroth.test_zeroth().
def tests.test_setjy.SetjyUnitTestBase.check_history | ( | self, | |
histline, | |||
items | |||
) |
def tests.test_setjy.SetjyUnitTestBase.get_last_history_line | ( | self, | |
vis, | |||
origin = 'setjy::imager::setjy()' , |
|||
nback = 0 , |
|||
maxnback = 20 , |
|||
hint = '' |
|||
) |
Finding the right history line is a bit tricky...it helps to filter by origin and read from the back to remain unaffected by changes elsewhere. This reads up to maxnback lines with origin origin until it finds one including hint in the message, going backwards from nback lines from the end. Returns 'JUNK' on failure.
Definition at line 43 of file test_setjy.py.
References taskinit.tbtool.
Referenced by tests.test_setjy.SetjyUnitTestBase.resetMS(), tests.test_setjy.test_ModImage.run_setjy(), tests.test_setjy.test_SingleObservation.test1_SingleObservationOldModel(), tests.test_setjy.test_SingleObservation.test2_SingleObservationSelectByChan(), and tests.test_setjy.test_SingleObservation.test3_SingleObservationNewModel().
def tests.test_setjy.SetjyUnitTestBase.resetMS | ( | self | ) |
Definition at line 36 of file test_setjy.py.
References tests.test_setjy.SetjyUnitTestBase.get_last_history_line(), and tests.test_setjy.SetjyUnitTestBase.inpms.
Referenced by tests.test_setjy.test_SingleObservation.tearDown(), tests.test_setjy.test_MultipleObservations.tearDown(), and tests.test_setjy.test_inputs.tearDown().
def tests.test_setjy.SetjyUnitTestBase.setUpMS | ( | self, | |
MS | |||
) |
Definition at line 23 of file test_setjy.py.
Referenced by tests.test_setjy.test_SingleObservation.setUp(), tests.test_setjy.test_MultipleObservations.setUp(), and tests.test_setjy.test_inputs.setUp().
Reimplemented in tests.test_setjy.test_inputs, and tests.test_setjy.test_ModImage.
Definition at line 25 of file test_setjy.py.
Referenced by tests.test_uvcontsub3.UVContsub3UnitTestBase.cleanup(), tests.test_uvcontsub.UVContsubUnitTestBase.cleanup(), tests.test_split.split_test_tav.do_split(), tests.test_split.split_test_cav.do_split(), tests.test_split.split_test_cav5.do_split(), tests.test_split.split_test_almapol.do_split(), tests.test_split.split_test_unorderedpolspw.do_split(), tests.test_split.split_test_sw_and_fc.do_split(), tests.test_split.split_test_optswc.do_split(), tests.test_split.split_test_tav_then_cvel.do_split(), tests.test_split.split_test_wttosig.do_split(), tests.test_split.split_test_fc.do_split(), tests.test_split.SplitChecker.initialize(), tests.test_split.split_test_cst.initialize(), tests.test_setjy.SetjyUnitTestBase.resetMS(), tests.test_setjy.test_ModImage.run_setjy(), tests.test_split.split_test_state.setUp(), tests.test_split.split_test_cavcd.setUp(), tests.test_split.split_test_genericsubtables.setUp(), tests.test_split.split_test_singchan.setUp(), tests.test_split.split_test_blankov.setUp(), tests.test_split.SplitChecker.tearDown(), tests.test_split.split_test_cavcd.tearDown(), tests.test_split.split_test_singchan.tearDown(), tests.test_split.split_test_blankov.tearDown(), tests.test_setjy.test_MultipleObservations.test1_MultipleObservationOldModel(), tests.test_setjy.test_SingleObservation.test1_SingleObservationOldModel(), tests.test_setjy.test_MultipleObservations.test2_MultipleObservationOldModel(), tests.test_setjy.test_SingleObservation.test2_SingleObservationSelectByChan(), tests.test_setjy.test_SingleObservation.test3_SingleObservationNewModel(), tests.test_split.split_test_blankov.test_blankov(), tests.test_uvcontsub3.combspw.test_combspw(), tests.test_uvcontsub.combspw.test_combspw(), tests.test_split.split_test_cst.test_cst(), tests.test_uvcontsub3.fourth.test_fourth(), tests.test_uvcontsub.fourth.test_fourth(), tests.test_uvcontsub3.knowncombspw.test_knowncombspw(), tests.test_setjy.test_inputs.test_listmodels(), tests.test_split.split_test_cst.test_obs(), tests.test_split.split_test_singchan.test_singchan(), tests.test_uvcontsub3.zeroth.test_zeroth(), and tests.test_uvcontsub.zeroth.test_zeroth().