Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parameter_point(self, wc_dict, scale=None):
"""Choose a point in parameter space by providing a dictionary of
Wilson coefficient values (with keys corresponding to WCxf Wilson
coefficient names) and the input scale."""
if not scale:
raise ValueError("You need to provide a scale")
w = self.get_wilson(wc_dict, scale)
return GlobalLikelihoodPoint(self, w, fix_ckm=self.fix_ckm)
def parameter_point(self, filename):
"""Choose a point in parameter space by providing the path to a WCxf
file."""
with open(filename, 'r') as f:
wc = wcxf.WC.load(f)
w = Wilson.from_wc(wc)
return GlobalLikelihoodPoint(self, w, fix_ckm=self.fix_ckm)
def parameter_point(self, w):
"""Choose a point in parameter space by providing an instance
of `wilson.Wilson`."""
return GlobalLikelihoodPoint(self, w, fix_ckm=self.fix_ckm)