AttributeError: 'int' object has no attribute 'simplify' --invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I've created a particularly simple model, SM plus a new scalar singlet chi. In importing the model I get the error:
mg5>import mindm
The import format was not given, so we guess it as model
models.import_ufo: load particles
models.import_ufo: load vertices
Command "import mindm" interrupted in sub-command:
"import model mindm" with error:
AttributeError : 'int' object has no attribute 'simplify'
Please report this bug on https:/
More information is found in 'MG5_debug'.
Please attach this file to your report.
The contents of MG5_debug (less header) are:
import model sm
import model mindm
Traceback (most recent call last):
File "/home/
return cmd.Cmd.
File "/usr/lib/
return func(arg)
File "/home/
self.
File "/home/
model = import_
File "/home/
model = ufo2mg5_
File "/home/
self.
File "/home/
if helas.name not in self.checked_lor]
File "/home/
expr = expr.simplify()
AttributeError: 'int' object has no attribute 'simplify'
Value of current Options:
exrootana
automatic_
ignore_
I have attached the model folder I'm using. It's very likely that I've simply formatted something incorrectly for my model, but I can't spot the error.
Thanks for your help,
Will Shepherd
Hi Will,
I can not reproduce your error with the model that you attach.
so could you check that this indeed happens with your model after removing ./mindm/model.pkl
This are the outputs that I obtained:
with MG5 1.4.2 (current release) 3/models/ mindm with file ../1.4. 3/models/ mindm/restrict_ default. dat . 3/models/ mindm" interrupted with error: /bugs.launchpad .net/madgraph5
I have the following output:
models.import_ufo: load particles
WARNING: Property spin cannot be changed:Spin 0 is smaller than one
models.import_ufo: load vertices
models.import_ufo: Restrict model ../1.4.
Command "import model ../1.4.
NameError : name 'GCHI' is not defined
Please report this bug on https:/
More information is found in 'MG5_debug'.
Please attach this file to your report.
and with MG5 1.4.3 (the current beta version) mindm/restrict_ default. dat . /answers. launchpad. net/madgraph5
set( ['mass' , 'wolfenstein', 'yukawa', 'sminputs', 'decay']) != set(['wolfenstein', 'yukawa', 'decay', 'mass', 'dminputs', 'sminputs'])
WARNING: Property spin cannot be changed:Spin 0 is smaller than one
models.import_ufo: load vertices
models.import_ufo: Restrict model mindm with file models/
Error detected in "import model mindm"
write debug file MG5_debug
If you need help with this issue please contact us on https:/
MadGraph5Error : Invalid restriction card (not same block)
The Warning is in this case VERY problematic. This is due that UFO use the 2*S+1 convention for the spin.
the spin of a scalar is therefore 1 and not 0. (In this case since 0 is not allowed we kept the default (1) so by luck this is fine in your case)
Both the error reported in 1.4.2 and 1.4.3 are linked to the restriction card which are not valid.
If I bypassed this (by doing
import model mindm-full)
then the import of the model works fine.
Concerning the actual problem that you point (and that I can not reproduce), this error can occur only if
1) They are vertex a with at least one fermion.
2) The Lorentz structure is a number.
Such lorentz structure is not possible in presence of fermion, so this is probably due to a wrong model implementation (that's why I ask you to cross-check if you give me the correct model).
One last advice, when you develop a model:
1) remove all the restrict_xxx.dat file
2) run mg5 in debug mode
./bin/mg5 --debug
Cheers,
Olivier