

def asjson(self):
    val = self._val
    return json.dumps({
        'name': self.name,
        'val': val,
        'min': self.min,
        'max': self.max,
        'vary': self.vary,
        'expr': self.expr,
        'stderr': self.stderr,
        'correl': self.correl,
        'units': self.units,
        'decimals': self.decimals,
    })

dataset/ETHPy150Open xraypy/xraylarch/lib/fitting/parameter.py Parameter.asjson/original