def test_do_boss_calibs_two_of_each(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nBias = 2 cmdState.nDark = 2 cmdState.nFlat = 2 cmdState.nArc = 2 self._do_boss_calibs(29,148,0,0,cmdState)
def test_do_boss_calibs_one_of_each(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nBias = 1 cmdState.nDark = 1 cmdState.nFlat = 1 cmdState.nArc = 1 self._do_boss_calibs(16,82,0,0,cmdState)
def test_do_boss_calibs_one_arc_coobserve(self): """coobserving carts should close the apogee shutter first.""" cmdState = CmdState.DoBossCalibsCmd() cmdState.nArc = 1 sopTester.updateModel('guider',TestHelper.guiderState['apogeemangaDitherLoaded']) sopTester.updateModel('mcp',TestHelper.mcpState['apogee_parked']) sopTester.updateModel('apogee',TestHelper.apogeeState['B_open']) self._do_boss_calibs(8,38,0,0,cmdState)
def test_do_boss_calibs_one_flat_coobserve_gangPodium(self): """ Coobserving carts should not bother with the apogee shutter when the gang connector is not at the cart. """ cmdState = CmdState.DoBossCalibsCmd() cmdState.nFlat = 1 sopTester.updateModel('guider',TestHelper.guiderState['apogeemangaDitherLoaded']) sopTester.updateModel('mcp',TestHelper.mcpState['all_off']) sopTester.updateModel('apogee',TestHelper.apogeeState['B_open']) self._do_boss_calibs(7,30,0,0,cmdState)
def initCommands(self): """Recreate the objects that hold the state of the various commands.""" sopState = myGlobals.actorState sopState.gotoField = CmdState.GotoFieldCmd() sopState.doBossCalibs = CmdState.DoBossCalibsCmd() sopState.doBossScience = CmdState.DoBossScienceCmd() sopState.doMangaDither = CmdState.DoMangaDitherCmd() sopState.doMangaSequence = CmdState.DoMangaSequenceCmd() sopState.doApogeeMangaDither = CmdState.DoApogeeMangaDitherCmd() sopState.doApogeeMangaSequence = CmdState.DoApogeeMangaSequenceCmd() sopState.hartmann = CmdState.HartmannCmd() sopState.collimateBoss = CmdState.CollimateBossCmd() super(SopCmd_APO, self).initCommands()
def test_do_boss_calibs_two_flat_fail_on_readout(self): cmdState = CmdState.DoBossCalibsCmd() self.cmd.failOn = "boss exposure readout" cmdState.nFlat = 2 self._do_boss_calibs(7,38,0,1,cmdState,didFail=True)
def test_do_boss_calibs_flat_arc_fail_on_hgcd(self): cmdState = CmdState.DoBossCalibsCmd() self.cmd.failOn = "mcp hgcd.on" cmdState.nFlat = 1 cmdState.nArc = 1 self._do_boss_calibs(7,38,0,1,cmdState,didFail=True)
def test_do_boss_calibs_one_arc_ffs_open(self): sopTester.updateModel('mcp',TestHelper.mcpState['boss_science']) cmdState = CmdState.DoBossCalibsCmd() cmdState.nArc = 1 self._do_boss_calibs(9,31,0,0,cmdState)
def test_do_boss_calibs_two_bias(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nBias = 2 self._do_boss_calibs(5,38,0,0,cmdState)
def test_do_boss_calibs_one_arc(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nArc = 1 self._do_boss_calibs(7,31,0,0,cmdState)
def test_do_boss_calibs_two_flat(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nFlat = 2 self._do_boss_calibs(13,50,0,0,cmdState)
def test_do_boss_calibs_one_flat(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nFlat = 1 self._do_boss_calibs(7,30,0,0,cmdState)
def test_do_boss_calibs_one_dark_ffs_open(self): """For #371, not closing FFS for bias/dark.""" sopTester.updateModel('mcp',TestHelper.mcpState['boss_science']) cmdState = CmdState.DoBossCalibsCmd() cmdState.nDark = 1 self._do_boss_calibs(4,24,0,0,cmdState)
def test_do_boss_calibs_two_dark(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nDark = 2 self._do_boss_calibs(5,38,0,0,cmdState)
def test_do_boss_calibs_one_dark(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nDark = 1 self._do_boss_calibs(4,24,0,0,cmdState)
def test_do_boss_calibs_two_arc_fail_on_second_exposure(self): cmdState = CmdState.DoBossCalibsCmd() self.cmd.failOn = "boss exposure arc itime=4 noreadout" self.cmd.failOnCount = 2 cmdState.nArc = 2 self._do_boss_calibs(9,48,0,1,cmdState,didFail=True)
def test_do_boss_calibs_two_arc(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nArc = 2 self._do_boss_calibs(12,49,0,0,cmdState)
def test_do_boss_calibs_one_bias(self): cmdState = CmdState.DoBossCalibsCmd() cmdState.nBias = 1 self._do_boss_calibs(4,24,0,0,cmdState)