def add_iso_evo(self, name=None, rec=None): if rec is None: if self.active_editor is not None: rec = self.active_editor.model name = self.active_editor.name if rec is None: return from pychron.processing.tasks.isotope_evolution.isotope_evolution_editor import IsotopeEvolutionEditor ieditor = IsotopeEvolutionEditor(name='IsoEvo {}'.format(name), processor=self.manager) ieditor.set_items([rec]) self.editor_area.add_editor(ieditor)
def add_iso_evo(self, name=None, rec=None): if rec is None: if self.active_editor is not None: rec = self.active_editor.model name = self.active_editor.name if rec is None: return from pychron.processing.tasks.isotope_evolution.isotope_evolution_editor import IsotopeEvolutionEditor ieditor = IsotopeEvolutionEditor( name='IsoEvo {}'.format(name), processor=self.manager) ieditor.set_items([rec]) self.editor_area.add_editor(ieditor)
def add_iso_evo(self, name=None, rec=None): if rec is None: if self.active_editor is not None: rec = self.active_editor.model name = self.active_editor.name if rec is None: return self.manager.load_raw_data(rec) name = 'IsoEvo {}'.format(name) editor = self.get_editor(name) if editor: self.activate_editor(editor) else: from pychron.processing.tasks.isotope_evolution.isotope_evolution_editor import IsotopeEvolutionEditor ieditor = IsotopeEvolutionEditor(name=name, processor=self.manager) ieditor.set_items([rec]) self.editor_area.add_editor(ieditor)