def start_emu(self): res1 = Load(r'emu00006473.nxs', OutputWorkspace='ws1') Load(r'emu00006475.nxs', OutputWorkspace='ws2') plot([res1[0]], [3, 5, 7]) manager = GlobalFigureManager.get_active() self.w = manager.window trigger_action(find_action_with_text(self.w, 'Fit')) yield 0.1 self.fit_browser = manager.fit_browser
def start_emu(self): res1 = Load(r'emu00006473.nxs', OutputWorkspace='ws1') Load(r'emu00006475.nxs', OutputWorkspace='ws2') plot([res1[0]], [3, 5, 7]) manager = GlobalFigureManager.get_active() self.w = manager.window trigger_action(find_action_with_text(self.w, 'Fit')) yield 0.1 self.fit_browser = manager.fit_browser
def test_hidden_fit_for_images(self): if 'ws1' in mtd: ws1 = mtd['ws1'] else: ws1 = Load(r'emu00006473.nxs', OutputWorkspace='ws1')[0] pcolormesh([ws1]) manager = GlobalFigureManager.get_active() action = manager.toolbar._actions['toggle_fit'] self.assertFalse(action.isVisible()) self.assertFalse(action.isEnabled())
def test_hidden_fit_for_images(self): if 'ws1' in mtd: ws1 = mtd['ws1'] else: ws1 = Load(r'emu00006473.nxs', OutputWorkspace='ws1')[0] pcolormesh([ws1]) manager = GlobalFigureManager.get_active() action = manager.toolbar._actions['toggle_fit'] self.assertFalse(action.isVisible()) self.assertFalse(action.isEnabled())
def start(self): if 'ws' not in mtd: ws = Load(r'irs26176_graphite002_conv_1LFixF_s0_to_9_Result.nxs', OutputWorkspace='ws') else: ws = mtd['ws'] plot([ws], [1]) manager = GlobalFigureManager.get_active() self.w = manager.window trigger_action(find_action_with_text(self.w, 'Fit')) yield 0.1 self.fit_browser = manager.fit_browser
def start(self): if 'ws' not in mtd: ws = Load(r'irs26176_graphite002_conv_1LFixF_s0_to_9_Result.nxs', OutputWorkspace='ws') else: ws = mtd['ws'] plot([ws], [1]) manager = GlobalFigureManager.get_active() self.w = manager.window trigger_action(find_action_with_text(self.w, 'Fit')) yield 0.1 self.fit_browser = manager.fit_browser
def test_get_active(self): mock_manager = MockFigureManager(0) GlobalFigureManager.set_active(mock_manager) self.assertEqual(mock_manager, GlobalFigureManager.get_active())
def test_get_active(self): mock_manager = MockFigureManager(0) GlobalFigureManager.set_active(mock_manager) self.assertEqual(mock_manager, GlobalFigureManager.get_active())