view get_out_folder.py @ 1:904815426ba8 draft

planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_uep_opt commit 1f0d5da860dd5cd0ffceac7a292773ed53617324
author muon-spectroscopy-computational-project
date Thu, 15 Sep 2022 10:20:50 +0000
parents e4097a3e3e75
children
line wrap: on
line source

import sys

import yaml


try:
    with open('params.yaml') as f:
        data = yaml.safe_load(f)
    sys.stdout.write(data['out_folder'])
except KeyError:
    sys.stdout.write('muon-airss-out')