Esempio n. 1
0
    def _open_dialog(self, name, widget):

        if name == 'Collapse Cube':
            ex = collapse_cube.CollapseCube(
                self._wavelength_controller.wavelengths,
                self._wavelength_controller.current_units,
                self._data,
                parent=self,
                allow_preview=True)

        if name == 'Spatial Smoothing':
            ex = smoothing.SelectSmoothing(self._data,
                                           parent=self,
                                           allow_preview=True)

        if name == 'Arithmetic Operations':
            dialog = ArithmeticEditorWidget(self.session.data_collection)
            dialog.exec_()

        if name == "Moment Maps":
            mm_gui = moment_maps.MomentMapsGUI(self._data,
                                               self.session.data_collection,
                                               parent=self)
            mm_gui.display()

        if name == 'Convert Displayed Units':
            self._flux_unit_controller.converter(parent=self)

        if name == 'Convert Data Values':
            self._flux_unit_controller.converter(parent=self,
                                                 convert_data=True)

        if name == "Wavelength Units/Redshift":
            WavelengthUI(self._wavelength_controller, parent=self)
Esempio n. 2
0
 def _do_action(self):
     assert self._can_trigger()
     data = self.selected_layers()[0]
     print(data.label)
     dialog = ArithmeticEditorWidget(self._layer_tree.data_collection,
                                     initial_data=data)
     dialog.exec_()
Esempio n. 3
0
    def _open_dialog(self, name, widget):

        if name == 'Collapse Cube':
            ex = collapse_cube.CollapseCube(
                self._wavelength_controller.wavelengths,
                self._wavelength_controller.current_units,
                self._data, parent=self, allow_preview=True)

        if name == 'Spatial Smoothing':
            ex = smoothing.SelectSmoothing(self._data, parent=self, allow_preview=True)

        if name == 'Arithmetic Operations':
            dialog = ArithmeticEditorWidget(self.session.data_collection)
            dialog.exec_()

        if name == "Moment Maps":
            mm_gui = moment_maps.MomentMapsGUI(
                self._data, self.session.data_collection, parent=self)
            mm_gui.display()

        if name == 'Convert Displayed Units':
            self._flux_unit_controller.converter(parent=self)

        if name == 'Convert Data Values':
            self._flux_unit_controller.converter(parent=self, convert_data=True)

        if name == "Wavelength Units/Redshift":
            WavelengthUI(self._wavelength_controller, parent=self)
Esempio n. 4
0
 def _artihmetic_dialog(self, *event):
     dialog = ArithmeticEditorWidget(self.data_collection)
     dialog.exec_()
Esempio n. 5
0
 def _create_component(self):
     dialog = ArithmeticEditorWidget(self.data_collection)
     dialog.exec_()
Esempio n. 6
0
 def _create_component(self):
     dialog = ArithmeticEditorWidget(self.data_collection)
     dialog.exec_()
Esempio n. 7
0
 def _artihmetic_dialog(self, *event):
     dialog = ArithmeticEditorWidget(self.data_collection)
     dialog.exec_()