AttributeError on launch
Hello,
I've written my own model (scalar electrodynamics) in FeynRules and imported it to MG which seems to work fine.
I've generated an interaction and output it successfully, but on launching it I get an AttributeError.
Here is the debug log:
Traceback (most recent call last):
File "/mt/home/
return self.onecmd_
File "/mt/home/
return func(arg, **opt)
File "/mt/home/
self.
File "/mt/home/
self.
File "/mt/home/
self.ask, first_cmd=
File "/mt/home/
cards=cards, mode=mode, **opt)
File "/mt/home/
fct=
File "/mt/home/
result = fct(question)
File "/mt/home/
return self.cmdloop()
File "/mt/home/
super(
File "/mt/home/
stop = self.postcmd(stop, line)
File "/mt/home/
self.
File "/mt/home/
self.
File "/mt/home/
modify = param_card.
File "/mt/home/
param_value = self.get(
AttributeError: 'NoneType' object has no attribute 'get'
It seems to trip up on the param card, so here is param_card.dat:
Block QNUMBERS 9000001 # l
1 -3 # 3 times electric charge
2 1 # number of spin states (2S+1)
3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
4 1 # Particle/
Block QNUMBERS 9000002 # l2
1 -3 # 3 times electric charge
2 1 # number of spin states (2S+1)
3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
4 1 # Particle/
Block QNUMBERS 9000003 # a
1 0 # 3 times electric charge
2 3 # number of spin states (2S+1)
3 1 # colour rep (1: singlet, 3: triplet, 8: octet)
4 0 # Particle/
The particles have a mass defined (it is 0), like so:
l = Particle(pdg_code = 9000001,
name = 'l',
spin = 1,
color = 1,
mass = Param.ZERO,
width = Param.ZERO,
charge = -1,
and Param.ZERO is in parameters.py
ZERO = Parameter(name = 'ZERO',
Obviously this doesn't have an lhacode, could this be the error? That seems like it would make it trip on .value rather than .get
Thank you so much for your help,
Vincent
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vincent Groff
- Solved:
- Last query:
- Last reply: