Mercurial > repos > muon-spectroscopy-computational-project > pm_muairss_read
view config.py @ 5:17da9f67ed33 draft default tip
planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_muairss_read commit 389608650050596b28bc0c055de9f98c513a6f65
author | muon-spectroscopy-computational-project |
---|---|
date | Fri, 26 Jul 2024 12:57:38 +0000 |
parents | 40071ff77285 |
children |
line wrap: on
line source
import yaml def main(): with open("params.yaml") as f: existing_params = yaml.safe_load(f) with open("incoming_params") as f: incoming_params = yaml.safe_load(f) merged_params = {**existing_params, **incoming_params} with open("params.yaml", "w") as f: yaml.safe_dump(merged_params, f) if __name__ == "__main__": main()