예제 #1
0
    def create_dock_panes(self):

        name = 'Isotope Evolutions'
        man = self.application.get_service(SPECTROMETER_PROTOCOL)
        if not man or man.simulation:
            name = '{}(Simulation)'.format(name)

        self.isotope_evolution_pane = IsotopeEvolutionPane(name=name)

        self.experiment_factory_pane = ExperimentFactoryPane(
            model=self.manager.experiment_factory)
        wait_pane = WaitPane(model=self.manager.executor.wait_group)

        explanation_pane = ExplanationPane()
        explanation_pane.set_colors(self._assemble_state_colors())

        ex = self.manager.executor
        panes = [
            StatsPane(model=self.manager.stats),
            ControlsPane(model=ex),
            ConsolePane(model=ex),
            LoggerPane(),
            # AnalysisHealthPane(model=self.analysis_health),
            ConnectionStatusPane(model=ex),
            self.experiment_factory_pane,
            self.isotope_evolution_pane,
            explanation_pane,
            wait_pane
        ]

        if self.loading_manager:
            self.load_pane = self.window.application.get_service(
                'pychron.loading.panes.LoadDockPane')
            self.load_table_pane = self.window.application.get_service(
                'pychron.loading.panes.LoadTablePane')

            self.load_pane.model = self.loading_manager
            self.load_table_pane.model = self.loading_manager

            panes.extend([self.load_pane, self.load_table_pane])

        panes = self._add_canvas_pane(panes)

        # app = self.window.application
        # man = app.get_service('pychron.lasers.laser_managers.ilaser_manager.ILaserManager')
        # if man:
        #     if hasattr(man.stage_manager, 'video'):
        #         from pychron.image.tasks.video_pane import VideoDockPane
        #
        #         video = man.stage_manager.video
        #         man.initialize_video()
        #         pane = VideoDockPane(video=video)
        #         panes.append(pane)
        #
        #     from pychron.lasers.tasks.laser_panes import ClientDockPane
        #     lc = ClientDockPane(model=man)
        #     self.laser_control_client_pane = lc
        #     panes.append(lc)

        return panes
예제 #2
0
 def create_dock_panes(self):
     self.wait_pane = WaitPane(model=self.manager.wait_group)
     panes = [
         GaugePane(model=self.manager),
         ExplanationPane(model=self.manager),
         ConsolePane(model=self.manager), self.wait_pane
     ]
     return panes
예제 #3
0
 def create_dock_panes(self):
     self.wait_pane = WaitPane(model=self.manager.wait_group)
     panes = [
         GaugePane(model=self.manager),
         CryoPane(model=self.manager),
         ExplanationPane(model=self.manager),
         ConsolePane(model=self.manager),
         ReadbackPane(model=self.manager),
         EditorPane(model=self.manager.canvas_editor), self.wait_pane
     ]
     return panes
예제 #4
0
    def create_dock_panes(self):
        self.connection_pane = ConnectionPane()
        self.controls_pane = ControlsPane()
        self.unknowns_pane = AnalysisPane()
        self.plotter_options_pane = PlotterOptionsPane()
        self.plot_editor_pane = PlotEditorPane()

        self.console_pane = ConsolePane()

        self.dashboard_pane = DashboardPane(model=self.dashboard_client)

        return [
            self.connection_pane, self.controls_pane, self.unknowns_pane,
            self.plotter_options_pane, self.console_pane,
            self.plot_editor_pane, self.dashboard_pane
        ]
예제 #5
0
    def create_dock_panes(self):
        self.isotope_evolution_pane = IsotopeEvolutionPane()

        self.experiment_factory_pane = ExperimentFactoryPane(model=self.manager.experiment_factory)
        self.wait_pane = WaitPane(model=self.manager.executor)

        panes = [StatsPane(model=self.manager),
                 ControlsPane(model=self.manager.executor),
                 ConsolePane(model=self.manager.executor),
                 #AnalysisHealthPane(model=self.analysis_health),

                 self.experiment_factory_pane,
                 self.isotope_evolution_pane,
                 self.wait_pane]

        if self.loading_manager:
            self.load_pane = self.window.application.get_service('pychron.loading.panes.LoadDockPane')
            self.load_table_pane = self.window.application.get_service('pychron.loading.panes.LoadTablePane')
            self.load_table_pane.model = self.loading_manager

            panes.extend([self.load_pane,
                          self.load_table_pane])

        panes = self._add_canvas_pane(panes)

        app = self.window.application
        man = app.get_service(ILaserManager)
        if man:
            if hasattr(man.stage_manager, 'video'):
                #vt = VideoTask()
                #             plugin = app.get_plugin('pychron.video')
                #             task = plugin.tasks[0].factory()
                #             self.window.add_task(task)

                video = man.stage_manager.video
                man.initialize_video()
                pane = VideoDockPane(video=video)
                #pane = vt.new_video_dock_pane(video=video)
                panes.append(pane)

            from pychron.lasers.tasks.laser_panes import ClientDockPane

            lc = ClientDockPane(model=man)
            self.laser_control_client_pane = lc
            panes.append(lc)

        return panes
예제 #6
0
    def create_dock_panes(self):

        name = 'Isotope Evolutions'
        man = self.application.get_service(SPECTROMETER_PROTOCOL)
        if not man or man.simulation:
            name = '{}(Simulation)'.format(name)

        self.isotope_evolution_pane = IsotopeEvolutionPane(name=name)

        self.experiment_factory_pane = ExperimentFactoryPane(
            model=self.manager.experiment_factory)
        wait_pane = WaitPane(model=self.manager.executor.wait_group)

        explanation_pane = ExplanationPane()
        explanation_pane.set_colors(self._assemble_state_colors())

        ex = self.manager.executor
        panes = [
            StatsPane(model=ex.stats),
            ControlsPane(model=ex, task=self),
            ConsolePane(model=ex),
            LoggerPane(),
            ConnectionStatusPane(model=ex), self.experiment_factory_pane,
            self.isotope_evolution_pane, explanation_pane, wait_pane
        ]

        if self.loading_manager:
            self.load_pane = self.window.application.get_service(
                'pychron.loading.tasks.panes.LoadDockPane')
            self.load_table_pane = self.window.application.get_service(
                'pychron.loading.tasks.panes.LoadTablePane')

            self.load_pane.model = self.loading_manager
            self.load_table_pane.model = self.loading_manager

            panes.extend([self.load_pane, self.load_table_pane])

        panes = self._add_canvas_pane(panes)
        for p in self.dock_pane_factories:
            pane = p()
            panes.append(pane)

        return panes