def omega_param(val):
val = val.strip().rstrip()<EOL>if val.startswith(('<STR_LIT:">', "<STR_LIT:'>")):<EOL><INDENT>return str(val[<NUM_LIT:1>:-<NUM_LIT:1>])<EOL><DEDENT>if val.startswith('<STR_LIT:[>'):<EOL><INDENT>return tuple(map(float, val[<NUM_LIT:1>:-<NUM_LIT:1>].split()))<EOL><DEDENT>return float(val)<EOL>
Parse a value from an Omega-scan configuration file

    This method tries to parse matlab-syntax parameters into a `str`,
    `float`, or `tuple`