def param_value(val):
    while isinstance(val, Parameter):
        val = val.value
    return val
get param value -- useful for 3rd party code
dataset/ETHPy150Open xraypy/xraylarch/lib/fitting/parameter.py/param_value