import model error with manually edited model
Hi,
I am trying to make a model by copying the sm files and edit them by hand.
When I try to import this model to mg5_aMC I get the following error message:
mg5> import model W_PRIME
Command "import model W_PRIME" interrupted with error:
TypeError : __init__() got an unexpected keyword argument 'textname'
Please report this bug on https:/
More information is found in 'MG5_debug'.
Please attach this file to your report
I don't really understand what this means?
I assume I have missed to add something to one of the files, but I don't know what and where.
I think it might have something to with the new parameter I included in parameters.py:
gR = Parameter(name = 'gR',
nature = 'external',
type = 'real',
)
Any idea of what might be wrong?
MG5_DEBUG:
#******
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.7.2 2020-03-17 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https:/
#* *
#******
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#******
set default_
set group_subprocesses Auto
set ignore_
set loop_optimized_
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model W_PRIME
Traceback (most recent call last):
File "/home/
return self.onecmd_
File "/home/
return func(arg, **opt)
File "/home/
self.
File "/home/
complex_
File "/home/
model = import_
File "/home/
ufo_model = ufomodels.
File "/home/
__import_
File "/home/
import particles
File "/home/
import parameters as Param
File "/home/
textname = '\\text{gR}'
TypeError: __init__() got an unexpected keyword argument 'textname'
default_
ignore_
loop_
low_mem_
max_
automatic_
cluster_
mg5amc_
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- 2020-04-07
- Last query:
- 2020-04-07
- Last reply:
- 2020-04-07
Hi,
"texname" is a defined argument for that class not "textname"
you put a "t" too much.
Cheers,
Olivier
> On 7 Apr 2020, at 17:52, Jakob Lundström <email address hidden> wrote:
>
> New question #689760 on MadGraph5_aMC@NLO:
> https:/
>
> Hi,
> I am trying to make a model by copying the sm files and edit them by hand.
> When I try to import this model to mg5_aMC I get the following error message:
>
> mg5> import model W_PRIME
> Command "import model W_PRIME" interrupted with error:
> TypeError : __init__() got an unexpected keyword argument 'textname'
> Please report this bug on https:/
> More information is found in 'MG5_debug'.
> Please attach this file to your report
>
> I don't really understand what this means?
> I assume I have missed to add something to one of the files, but I don't know what and where.
>
> I think it might have something to with the new parameter I included in parameters.py:
> gR = Parameter(name = 'gR',
> nature = 'external',
> type = 'real',
> value = 0.07071067812,
> textname = '\\text{gR}'
> )
> Any idea of what might be wrong?
>
>
> MG5_DEBUG:
> #******
> #* MadGraph5_aMC@NLO *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.7.2 2020-03-17 *
> #* *
> #* The MadGraph5_aMC@NLO Development Team - Find us at *
> #* https:/
> #* *
> #******
> #* *
> #* Command File for MadGraph5_aMC@NLO *
> #* *
> #* run as ./bin/mg5_aMC filename *
> #* *
> #******
> set default_
> set group_subprocesses Auto
> set ignore_
> set loop_optimized_
> set loop_color_flows False
> set gauge unitary
> set complex_mass_scheme False
> set max_npoint_
> import model sm
> define p = g u c d s u~ c~ d~ s~
> define j = g u c d s u~ c~ d~ s~
> define l+ = e+ mu+
> define l- = e- mu-
> define vl = ve vm vt
> define vl~ = ve~ vm~ vt~
> import model W_PRIME
> Traceback (most recent call last):
> File "/home/
> return self.onecmd_
> File "/home/
> return func(arg, **opt)
> File "/home/
> self.cmd.
> File "/home/
> complex_
> File "/home/
> model = import_
> File "/home/
> ufo_model = ufomodels.
> File "/home/
> __import_
> File "/home/
> import particles
> File "/home/
> import parameters as Param
> File "/home/
> textname = '\\text{gR}'
> TypeError: __init__() got an unexpected keyword argument 'textname'
> MadGraph5_aMC@NLO Options
> ----------------
> complex_mass_scheme : False
> default_
> gauge : unitary
> group_subprocesses : Auto
> ignore_
> loop_color_flows : False
> loop_optimized_
> low_mem_
> max_npoint_
> stdout_level : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_
> nb_core : None
> notification_center : True
> run_mode : 2
>
> Configuration Options
> -------
> OLP : MadLoop
> amcfast : amcfast-config
> applgrid : applgrid-config
> auto_update : 7
> cluster_local_path : None
> cluster_nb_retry : 1
> cluster_queue : None (user set)
> cluster_retry_wait : 300
> cluster_size : 100
> cluster_
> cluster_temp_path : None
> cluster_type : condor
> collier : ./HEPTools/lib
> cpp_compiler : None
> crash_on_error : False
> delphes_path : ./Delphes-3.4.2 (user set)
> eps_viewer : None
> exrootanalysis_path : ./ExRootAnalysis
> f2py_compiler : None
> fastjet : None (user set)
> fortran_compiler : None
> golem : None (user set)
> hepmc_path : None (user set)
> hwpp_path : None (user set)
> lhapdf : lhapdf-config
> madanalysis5_path : ./HEPTools/
> madanalysis_path : ./MadAnalysis
> mg5amc_
> ninja : ./HEPTools/lib
> output_dependencies : external
> pythia-pgs_path : ./pythia-pgs
> pythia8_path : None (user set)
> samurai : None
> syscalc_path : ./SysCalc
> td_path : ./td
> text_editor : None
> thepeg_path : None (user set)
> timeout : 60
> web_browser : None
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
Jakob Lundström (jakoblundst) said : | #2 |
Thanks Olivier Mattelaer, that solved my question.