Mercurial > repos > muon-spectroscopy-computational-project > pm_muairss_read
diff get_out_folder.py @ 0:49b6d76139da draft
planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_muairss_read commit d130cf2c46d933fa9d0214ddbd5ddf860f322dc4
author | muon-spectroscopy-computational-project |
---|---|
date | Thu, 25 Aug 2022 16:18:39 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_out_folder.py Thu Aug 25 16:18:39 2022 +0000 @@ -0,0 +1,11 @@ +import sys + +import yaml + + +try: + with open('params.yaml') as f: + data = yaml.safe_load(f) + sys.stdout.write(data['out_folder']) +except KeyError or FileNotFoundError: + sys.stdout.write('muon-airss-out')