def set_instrumental_profile_parameters(self,
                                         instrumental_profile_parameters):
     if self.instrumental_profile_parameters is None:
         self.instrumental_profile_parameters = {}
     ParametersList.set_dict_parameters(
         self.instrumental_profile_parameters,
         instrumental_profile_parameters)
Exemple #2
0
    def duplicate(self):
        diffraction_patterns =  ParametersList.duplicate_attributes_list(self.diffraction_patterns)
        incident_radiations  =  ParametersList.duplicate_attributes_list(self.incident_radiations)
        phases               =  ParametersList.duplicate_attributes_list(self.phases)
        line_profiles        =  ParametersList.duplicate_attributes_list(self.line_profiles)

        dataset = MeasuredDataset(diffraction_patterns=diffraction_patterns,
                                  incident_radiations=incident_radiations,
                                  phases=phases,
                                  line_profiles=line_profiles)

        dataset.initialized = self.initialized

        return dataset
    def duplicate(self):
        incident_radiations = ParametersList.duplicate_attributes_list(
            self.incident_radiations)
        instrumental_profile_parameters = copy.deepcopy(
            self.instrumental_profile_parameters)
        shift_parameters = copy.deepcopy(self.shift_parameters)

        return InstrumentalParameters(incident_radiations,
                                      instrumental_profile_parameters,
                                      shift_parameters)
 def set_shift_parameters(self, shift_parameters):
     if self.shift_parameters is None: self.shift_parameters = {}
     ParametersList.set_dict_parameters(self.shift_parameters,
                                        shift_parameters)
 def get_shift_parameters_item(self, key, diffraction_pattern_index):
     return ParametersList.get_dict_parameters_item(
         self.shift_parameters, key, diffraction_pattern_index)
 def get_shift_parameters(self, key):
     return ParametersList.get_dict_parameters(self.shift_parameters, key)
 def get_instrumental_profile_parameters_item(self, key,
                                              diffraction_pattern_index):
     return ParametersList.get_dict_parameters_item(
         self.instrumental_profile_parameters, key,
         diffraction_pattern_index)
 def get_instrumental_profile_parameters(self, key):
     return ParametersList.get_dict_parameters(
         self.instrumental_profile_parameters, key)
Exemple #9
0
 def duplicate_diffraction_patterns(self):
     return ParametersList.duplicate_attributes_list(self.diffraction_patterns)