Mercurial > repos > muon-spectroscopy-computational-project > larch_lcf
comparison common.py @ 2:85284c3e1354 draft
planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_lcf commit 0f66842e802430e887d1c6cb7be1cc5436408fd2
author | muon-spectroscopy-computational-project |
---|---|
date | Mon, 04 Mar 2024 11:43:39 +0000 |
parents | 6c28339b73f7 |
children | 6bb927e155fc |
comparison
equal
deleted
inserted
replaced
1:6c28339b73f7 | 2:85284c3e1354 |
---|---|
27 do_bkg=False, | 27 do_bkg=False, |
28 do_fft=False, | 28 do_fft=False, |
29 ) | 29 ) |
30 all_groups = {} | 30 all_groups = {} |
31 for key in athena_group._athena_groups.keys(): | 31 for key in athena_group._athena_groups.keys(): |
32 print(f"\nExtracting group {key}") | |
32 group = get_group(athena_group, key) | 33 group = get_group(athena_group, key) |
33 pre_edge_with_defaults(group=group) | 34 pre_edge_with_defaults(group=group) |
34 xftf_with_defaults(group=group) | 35 xftf_with_defaults(group=group) |
35 all_groups[key] = group | 36 all_groups[key] = group |
36 | 37 |
66 ("norm1", "nor1", None), | 67 ("norm1", "nor1", None), |
67 ("norm2", "nor2", None), | 68 ("norm2", "nor2", None), |
68 ("nnorm", "nnorm", None), | 69 ("nnorm", "nnorm", None), |
69 ("make_flat", "flatten", None), | 70 ("make_flat", "flatten", None), |
70 ("step", "step", None), | 71 ("step", "step", None), |
71 # This cannot be read from file as it is not stored by Larch (0.9.71) | 72 ("nvict", "nvict", None), |
72 # ("nvict", "nvict", None), | |
73 ) | 73 ) |
74 for key, parameters_key, default in keys: | 74 for key, parameters_key, default in keys: |
75 extract_attribute( | 75 extract_attribute( |
76 merged_settings, key, bkg_parameters, parameters_key, default | 76 merged_settings, key, bkg_parameters, parameters_key, default |
77 ) | 77 ) |