The module used for maintain the set of fitting parameters. Attributes ---------- parameters : `atom.Dict` A list of `Parameter` objects, subclassed from the `Atom` base class. These `Parameter` objects hold all relevant xrf information. data : array 1D
| 214 | |
| 215 | |
| 216 | class ParamModel(Atom): |
| 217 | """ |
| 218 | The module used for maintain the set of fitting parameters. |
| 219 | |
| 220 | Attributes |
| 221 | ---------- |
| 222 | parameters : `atom.Dict` |
| 223 | A list of `Parameter` objects, subclassed from the `Atom` base class. |
| 224 | These `Parameter` objects hold all relevant xrf information. |
| 225 | data : array |
| 226 | 1D array of spectrum |
| 227 | prefit_x : array |
| 228 | xX axis with range defined by low and high limits. |
| 229 | param_d : dict |
| 230 | Parameters can be transferred into this dictionary. |
| 231 | param_new : dict |
| 232 | More information are saved, such as element position and width. |
| 233 | total_y : dict |
| 234 | Results from k lines |
| 235 | total_y_l : dict |
| 236 | Results from l lines |
| 237 | total_y_m : dict |
| 238 | Results from l lines |
| 239 | e_list : str |
| 240 | All elements used for fitting. |
| 241 | file_path : str |
| 242 | The path where file is saved. |
| 243 | element_list : list |
| 244 | The list of element lines selected for fitting |
| 245 | n_selected_elines_for_fitting : Int |
| 246 | The number of element lines selected for fitting |
| 247 | n_selected_pure_elines_for_fitting : Int |
| 248 | The number of element lines selected for fitting |
| 249 | excluding pileup peaks and user defined peaks. |
| 250 | Only 'pure' lines like Ca_K, K_K etc. |
| 251 | """ |
| 252 | |
| 253 | # Reference to FileIOModel object |
| 254 | io_model = Typed(object) |
| 255 | |
| 256 | default_parameters = Dict() |
| 257 | # data = Typed(np.ndarray) |
| 258 | prefit_x = Typed(object) |
| 259 | result_dict_names = List() |
| 260 | param_new = Dict() |
| 261 | total_y = Typed(object) |
| 262 | # total_l = Dict() |
| 263 | # total_m = Dict() |
| 264 | # total_pileup = Dict() |
| 265 | e_name = Str() # Element line name selected in combo box |
| 266 | add_element_intensity = Float(1000.0) |
| 267 | element_list = List() |
| 268 | # data_sets = Typed(OrderedDict) |
| 269 | EC = Typed(object) |
| 270 | x0 = Typed(np.ndarray) |
| 271 | y0 = Typed(np.ndarray) |
| 272 | max_area_dig = Int(2) |
| 273 | auto_fit_all = Dict() |
no outgoing calls
no test coverage detected