Beispiel #1
0
    def testRemoveChannel(self):
        self.workflow.wi_sync(self.wi, 'view_error', 'waiting')
        self.view.channels_list.append(_Channel(channel="FSC-A", scale="log"))
        self.workflow.wi_waitfor(self.wi, 'view_error', '')

        self.workflow.wi_sync(self.wi, 'view_error', 'waiting')
        self.view.channels_list.pop()
        self.workflow.wi_waitfor(self.wi, 'view_error', '')
    def testAddChannel(self):

        self.workflow.remote_exec("self.workflow[0].view_error = 'waiting'")
        self.assertTrue(
            wait_for(self.wi, 'view_error', lambda v: v == "waiting", 5))

        self.view.channels_list.append(_Channel(channel="FSC-A", scale="log"))

        self.assertTrue(wait_for(self.wi, 'view_error', lambda v: v == "", 30))
    def setUp(self):
        ImportedDataTest.setUp(self)

        self.wi = wi = self.workflow.workflow[0]
        self.wi.operation.events = 500

        plugin = ParallelCoordinatesPlugin()
        self.view = view = plugin.get_view()

        view.channels_list = [
            _Channel(channel="B1-A", scale="log"),
            _Channel(channel="V2-A", scale="log"),
            _Channel(channel="Y2-A", scale="log")
        ]

        wi.views.append(view)
        wi.current_view = view
        self.workflow.selected = self.wi

        self.assertTrue(wait_for(self.wi, 'view_error', lambda v: v == "", 30))
    def setUp(self):
        super().setUp()

        self.wi = wi = self.workflow.workflow[-1]
        self.wi.operation.events = 500
        self.wi.operation.do_estimate = True
        
        plugin = ParallelCoordinatesPlugin()
        self.view = view = plugin.get_view()
        
        view.channels_list = [_Channel(channel = "B1-A", scale = "log"),
                              _Channel(channel = "V2-A", scale = "log"),
                              _Channel(channel = "Y2-A", scale = "log")]

        wi.views.append(view)
        wi.current_view = view
        self.workflow.selected = self.wi
        
        super().setUpView()
        
        self.workflow.wi_waitfor(self.wi, 'view_error', '')