@staticmethod
    def from_dict(d):
        ret = IntrinsicParameters()
        for k, v in d.iteritems():
            if not k.startswith('_') and k not in IntrinsicParameters.ALL_PARAMS:
                raise ValueError("Invalid parameter: %s" % k)
            setattr(ret, k, d[k])
        return ret
Load paramers from a dictionary
dataset/ETHPy150Open seanbell/intrinsic/bell2014/params.py/IntrinsicParameters.from_dict