-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting input parameters not working #113
Comments
First of all, you are right that your parameters will not be used for the running since a separate set of parameters is defined for that purpose (there is probably a historical reason for this since import wilson
smeft_par = wilson.run.smeft.smpar.p.copy() # copying so we could use the default parameters later
my_params = {
'Vus': 0.0,
'Vub': 0.0,
'Vcb': 0.0,
'gamma': 0.0,
'm_b': 0.0,
'm_s': 0.0,
'm_c': 0.0,
'm_u': 0.0,
'm_d': 0.0,
'm_e': 0.0,
'm_mu': 0.0,
'm_tau': 0.0
}
wilson.run.smeft.smpar.p.update(**my_params) Now as you write, the above change leads to a problem in the determination of the CKM matrix. This problem indeed arises from a division by zero as it is assumed that the Cabbibo angle import ckmutil.ckm
from copy import deepcopy
from functools import partial
ckm_tree = deepcopy(ckmutil.ckm.ckm_tree) # copying so we keep the original function
ckmutil.ckm.ckm_tree = partial(ckm_tree, delta_expansion_order=0) What this does is to fix the optional argument |
This is very helpful thanks! I will try it out. |
I might not be doing things correctly, but it seems to me that setting the input parameters is not having any effect. In particular, if I do:
I find that the 2 results are identical. Should I do things differently?
Inspecting the code I don't see where the parameters are passed to the functions calculating the sm parameters, in particular when smpar.smeftpar is called, it seems to always use the default values defined at the beginning of the file from the dictionary called p.
Further, if I modify those default parameters in the code, I indeed see an effect but it seems that switching off the off-diagonal CKM matrix elements and the gamma parameter results in some numerical problem, probably some division by zero. Instead, setting the masses to zero seems to be fine.
I have an interested in switching off those parameters as I want to use wilson in a flavour symmetric scenario, potentially studying the effects of the CKM matrix and the non-zero masses only at a later stage.
The text was updated successfully, but these errors were encountered: