Mercurial > repos > muon-spectroscopy-computational-project > larch_plot
comparison common.py @ 2:59d0d15a40ef draft
planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit 0f66842e802430e887d1c6cb7be1cc5436408fd2
author | muon-spectroscopy-computational-project |
---|---|
date | Mon, 04 Mar 2024 11:43:46 +0000 |
parents | 002c18a3e642 |
children | 5b993aff09e3 |
comparison
equal
deleted
inserted
replaced
1:002c18a3e642 | 2:59d0d15a40ef |
---|---|
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 ) |