Mercurial > repos > muon-spectroscopy-computational-project > larch_plot
comparison common.py @ 3:5b993aff09e3 draft
planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_plot commit d4c7e090dc5c94395d7e1574845ac2c76f2e4f5f
author | muon-spectroscopy-computational-project |
---|---|
date | Fri, 22 Mar 2024 14:23:33 +0000 |
parents | 59d0d15a40ef |
children | 35d24102cefd |
comparison
equal
deleted
inserted
replaced
2:59d0d15a40ef | 3:5b993aff09e3 |
---|---|
71 ("step", "step", None), | 71 ("step", "step", None), |
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=merged_settings, |
77 key=key, | |
78 parameters_group=bkg_parameters, | |
79 parameters_key=parameters_key, | |
80 default=default, | |
77 ) | 81 ) |
78 | 82 |
79 if settings: | 83 if settings: |
80 for k, v in settings.items(): | 84 for k, v in settings.items(): |
81 if k == "nvict": | 85 if k == "nvict": |
114 ("kweight", "kweight", 2), | 118 ("kweight", "kweight", 2), |
115 ("window", "kwindow", "kaiser"), | 119 ("window", "kwindow", "kaiser"), |
116 ) | 120 ) |
117 for key, parameters_key, default in keys: | 121 for key, parameters_key, default in keys: |
118 extract_attribute( | 122 extract_attribute( |
119 merged_settings, key, fft_parameters, parameters_key, default | 123 merged_settings=merged_settings, |
124 key=key, | |
125 parameters_group=fft_parameters, | |
126 parameters_key=parameters_key, | |
127 default=default, | |
120 ) | 128 ) |
121 | 129 |
122 if settings: | 130 if settings: |
123 for k, v in settings.items(): | 131 for k, v in settings.items(): |
124 merged_settings[k] = v | 132 merged_settings[k] = v |