view get_out_folder.py @ 6:da177c1ec3b4 draft default tip

planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_uep_opt commit 389608650050596b28bc0c055de9f98c513a6f65
author muon-spectroscopy-computational-project
date Fri, 26 Jul 2024 12:58:04 +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')