예제 #1
0
    def march_dollase_fitting_range_changed(self):
        o_march = MarchDollase(parent=self)
        o_march.update_roi_labels()

        o_fit = MarchDollaseFittingJobHandler(parent=self)
        o_fit.initialize_d_spacing()
        o_march.fill_history_table_with_fitting_information()
예제 #2
0
    def fit_that_selection_pushed_by_program(self, initialize_region=True):
        o_get = Get(parent=self)
        x_axis = o_get.all_x_axis()
        dict_regions = o_get.all_russian_doll_region_full_infos()

        o_init = PeakFittingInitialization(parent=self)
        fitting_input_dictionary = o_init.fitting_input_dictionary(nbr_rois=len(dict_regions))
        o_init.set_top_keys_values(fitting_input_dictionary,
                                   {'xaxis': x_axis,
                                    'bragg_edge_range': self.bragg_edge_range})
        self.append_dict_regions_to_fitting_input_dictionary(dict_regions, fitting_input_dictionary)

        # fitting_input_dictionary['xaxis'] = x_axis
        # fitting_input_dictionary['bragg_edge_range'] = self.bragg_edge_range

        self.fitting_input_dictionary = fitting_input_dictionary

        o_kropff = Kropff(parent=self)
        o_kropff.reset_all_table()

        o_march = MarchDollase(parent=self)
        o_march.reset_table()

        if initialize_region:
            self.initialize_default_peak_regions()
        else:
            if self.fitting_procedure_started['kropff']:
                o_kropff.fill_table_with_fitting_information()
        o_march.fill_tables_with_fitting_information()

        if initialize_region:
            o_march_fitting = MarchDollaseFittingJobHandler(parent=self)
            o_march_fitting.initialize_fitting_input_dictionary()

        self.ui.tabWidget.setTabEnabled(1, True)
        self.ui.actionExport.setEnabled(True)
        self.select_first_row_of_all_fitting_table()
예제 #3
0
 def march_dollase_fit_button_clicked(self):
     o_fit = MarchDollaseFittingJobHandler(parent=self)
     o_fit.prepare()
예제 #4
0
 def march_dollase_advanced_mode_clicked(self):
     o_march = MarchDollase(parent=self)
     o_march.advanced_mode_clicked()
     o_fit = MarchDollaseFittingJobHandler(parent=self)
     o_fit.initialize_fitting_input_dictionary()
     o_march.fill_history_table_with_fitting_information()