import model error with manually edited model

Asked by Jakob Lundström on 2020-04-07

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://bugs.launchpad.net/mg5amcnlo
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://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set default_unset_couplings 99
set group_subprocesses Auto
set ignore_six_quark_processes False
set loop_optimized_output True
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
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/jakob/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1515, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
    return func(arg, **opt)
  File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/master_interface.py", line 278, in do_import
    self.cmd.do_import(self, *args, **opts)
  File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/madgraph_interface.py", line 5396, in do_import
    complex_mass_scheme=self.options['complex_mass_scheme'])
  File "/home/jakob/MG5_aMC_v2_7_2/models/import_ufo.py", line 239, in import_model
    model = import_full_model(model_path, decay, prefix)
  File "/home/jakob/MG5_aMC_v2_7_2/models/import_ufo.py", line 383, in import_full_model
    ufo_model = ufomodels.load_model(model_path, decay)
  File "/home/jakob/MG5_aMC_v2_7_2/models/__init__.py", line 51, in load_model
    __import__(path_split[-1])
  File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/__init__.py", line 1, in <module>
    import particles
  File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/particles.py", line 8, in <module>
    import parameters as Param
  File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/parameters.py", line 503, in <module>
    textname = '\\text{gR}'
TypeError: __init__() got an unexpected keyword argument 'textname'
                          MadGraph5_aMC@NLO Options
                          ----------------
        complex_mass_scheme : False
    default_unset_couplings : 99
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0
               stdout_level : 20 (user set)

                         MadEvent Options
                          ----------------
     automatic_html_opening : True
                    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_status_update : (600, 30)
          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/madanalysis5/madanalysis5
           madanalysis_path : ./MadAnalysis
  mg5amc_py8_interface_path : None (user set)
                      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

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
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://answers.launchpad.net/mg5amcnlo/+question/689760
>
> 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://bugs.launchpad.net/mg5amcnlo
> 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://server06.fynu.ucl.ac.be/projects/madgraph *
> #* *
> #************************************************************
> #* *
> #* Command File for MadGraph5_aMC@NLO *
> #* *
> #* run as ./bin/mg5_aMC filename *
> #* *
> #************************************************************
> set default_unset_couplings 99
> set group_subprocesses Auto
> set ignore_six_quark_processes False
> set loop_optimized_output True
> set loop_color_flows False
> set gauge unitary
> set complex_mass_scheme False
> set max_npoint_for_channel 0
> 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/jakob/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1515, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/extended_cmd.py", line 1464, in onecmd_orig
> return func(arg, **opt)
> File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/master_interface.py", line 278, in do_import
> self.cmd.do_import(self, *args, **opts)
> File "/home/jakob/MG5_aMC_v2_7_2/madgraph/interface/madgraph_interface.py", line 5396, in do_import
> complex_mass_scheme=self.options['complex_mass_scheme'])
> File "/home/jakob/MG5_aMC_v2_7_2/models/import_ufo.py", line 239, in import_model
> model = import_full_model(model_path, decay, prefix)
> File "/home/jakob/MG5_aMC_v2_7_2/models/import_ufo.py", line 383, in import_full_model
> ufo_model = ufomodels.load_model(model_path, decay)
> File "/home/jakob/MG5_aMC_v2_7_2/models/__init__.py", line 51, in load_model
> __import__(path_split[-1])
> File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/__init__.py", line 1, in <module>
> import particles
> File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/particles.py", line 8, in <module>
> import parameters as Param
> File "/home/jakob/MG5_aMC_v2_7_2/models/W_PRIME/parameters.py", line 503, in <module>
> textname = '\\text{gR}'
> TypeError: __init__() got an unexpected keyword argument 'textname'
> MadGraph5_aMC@NLO Options
> ----------------
> complex_mass_scheme : False
> default_unset_couplings : 99
> gauge : unitary
> group_subprocesses : Auto
> ignore_six_quark_processes : False
> loop_color_flows : False
> loop_optimized_output : True
> low_mem_multicore_nlo_generation : False
> max_npoint_for_channel : 0
> stdout_level : 20 (user set)
>
> MadEvent Options
> ----------------
> automatic_html_opening : True
> 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_status_update : (600, 30)
> 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/madanalysis5/madanalysis5
> madanalysis_path : ./MadAnalysis
> mg5amc_py8_interface_path : None (user set)
> 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.