issue with user-defined propagator in propagator.py file
I am interested in modifying the Higgs propagator in a SM UFO file. I created a new propagator in propagator.py:
denominator = "P('mu', id) * P('mu', id) - Mass(id) * Mass(id) + complex(0,1) * Mass(id) * Width(id)"
S2 = Propagator(name = "S2",
)
and I link this propagator to the Higgs
H = Particle(pdg_code = 25,
name = 'H',
spin = 1,
color = 1,
mass = Param.MH,
width = Param.WH,
charge = 0,
Y = 0,
However, I receive an error after creating output with madgraph of
"Command "output directory" interrupted with error:
TypeError : not enough arguments for format string
Please report this bug on https:/
More information is found in 'MG5_debug'.
Please attach this file to your report."
Is this a bug, or am I doing something wrong?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Dear Salvator,
I have did the same thing as you.
(More exactly I did the following:)
Cd models
Cp -r sm sm_test
Cd sm_test
Cp ../EWDim6/
Cp ../EWDim6/
Cp ../EWDim6/
Cp ../EWDim6/
Then I did your modification to both particles.py and propagators.py
Just adding one more line in propagators.py
Import propagators as Prop
Then I can use the sm_tests model without any problem.
So I can not really comment on this without seeing the debug file.
Cheers,
Olivier
> On 25 May 2017, at 22:34, Salvator Lombardo <email address hidden> wrote:
>
> New question #634619 on MadGraph5_aMC@NLO:
> https:/
>
> I am interested in modifying the Higgs propagator in a SM UFO file. I created a new propagator in propagator.py:
>
> denominator = "P('mu', id) * P('mu', id) - Mass(id) * Mass(id) + complex(0,1) * Mass(id) * Width(id)"
> S2 = Propagator(name = "S2",
> numerator = "complex(0,1)",
> denominator = denominator
> )
>
> and I link this propagator to the Higgs
>
> H = Particle(pdg_code = 25,
> name = 'H',
> antiname = 'H',
> spin = 1,
> color = 1,
> mass = Param.MH,
> width = Param.WH,
> texname = 'H',
> antitexname = 'H',
> charge = 0,
> GhostNumber = 0,
> LeptonNumber = 0,
> Y = 0,
> propagator = Prop.S2)
>
> However, I receive an error after creating output with madgraph of
> "Command "output directory" interrupted with error:
> TypeError : not enough arguments for format string
> Please report this bug on https:/
> More information is found in 'MG5_debug'.
> Please attach this file to your report."
>
>
> Is this a bug, or am I doing something wrong?
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
Revision history for this message
|
#2 |
I have attached the debug file. I noticed that this is not an issue with older versions of mad graph (v2_2_3 works fine).
> On May 26, 2017, at 3:34 AM, Olivier Mattelaer <email address hidden> wrote:
>
> Your question #634619 on MadGraph5_aMC@NLO changed:
> https:/
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Dear Salvator,
>
> I have did the same thing as you.
> (More exactly I did the following:)
> Cd models
> Cp -r sm sm_test
> Cd sm_test
> Cp ../EWDim6/
> Cp ../EWDim6/
> Cp ../EWDim6/
> Cp ../EWDim6/
>
> Then I did your modification to both particles.py and propagators.py
> Just adding one more line in propagators.py
> Import propagators as Prop
>
> Then I can use the sm_tests model without any problem.
>
> So I can not really comment on this without seeing the debug file.
>
> Cheers,
>
> Olivier
>
>> On 25 May 2017, at 22:34, Salvator Lombardo <<email address hidden> <mailto:<email address hidden>>> wrote:
>>
>> New question #634619 on MadGraph5_aMC@NLO:
>> https:/
>>
>> I am interested in modifying the Higgs propagator in a SM UFO file. I created a new propagator in propagator.py:
>>
>> denominator = "P('mu', id) * P('mu', id) - Mass(id) * Mass(id) + complex(0,1) * Mass(id) * Width(id)"
>> S2 = Propagator(name = "S2",
>> numerator = "complex(0,1)",
>> denominator = denominator
>> )
>>
>> and I link this propagator to the Higgs
>>
>> H = Particle(pdg_code = 25,
>> name = 'H',
>> antiname = 'H',
>> spin = 1,
>> color = 1,
>> mass = Param.MH,
>> width = Param.WH,
>> texname = 'H',
>> antitexname = 'H',
>> charge = 0,
>> GhostNumber = 0,
>> LeptonNumber = 0,
>> Y = 0,
>> propagator = Prop.S2)
>>
>> However, I receive an error after creating output with madgraph of
>> "Command "output directory" interrupted with error:
>> TypeError : not enough arguments for format string
>> Please report this bug on https:/
>> More information is found in 'MG5_debug'.
>> Please attach this file to your report."
>>
>>
>> Is this a bug, or am I doing something wrong?
>>
>>
>> --
>> You received this question notification because you are an answer
>> contact for MadGraph5_aMC@NLO.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
Revision history for this message
|
#3 |
#******
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.5.3 2017-03-09 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https:/
#* *
#******
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#******
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 SM_MOD
generate w+ w- > w+ w-
output test
Traceback (most recent call last):
File "/Users/
return self.onecmd_
File "/Users/
return func(arg, **opt)
File "/Users/
self.
File "/Users/
self.
File "/Users/
wanted_
File "/Users/
wanted_lorentz, wanted_couplings)
File "/Users/
aloha_
File "/Users/
abstract_
File "/Users/
text = writer.
File "/Users/
core_text = self.define_
File "/Users/
formatted = '(%s)*%s' % tuple(formatted
TypeError: not enough arguments for format string
ignore_
loop_
low_mem_
max_
automatic_
cluster_
mg5amc_
Revision history for this message
|
#4 |
Hi,
Ah ok, this is a know bug which is fixed in 2.5.5 (which was released this morning).
Cheers,
Olivier
> On 26 May 2017, at 17:14, Salvator Lombardo <email address hidden> wrote:
>
> Question #634619 on MadGraph5_aMC@NLO changed:
> https:/
>
> Salvator Lombardo gave more information on the question:
> #******
> #* MadGraph5_aMC@NLO *
> #* *
> #* * * *
> #* * * * * *
> #* * * * * 5 * * * * *
> #* * * * * *
> #* * * *
> #* *
> #* *
> #* VERSION 2.5.3 2017-03-09 *
> #* *
> #* The MadGraph5_aMC@NLO Development Team - Find us at *
> #* https:/
> #* *
> #******
> #* *
> #* Command File for MadGraph5_aMC@NLO *
> #* *
> #* run as ./bin/mg5_aMC filename *
> #* *
> #******
> 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 SM_MOD
> generate w+ w- > w+ w-
> output test
> Traceback (most recent call last):
> File "/Users/
> return self.onecmd_
> File "/Users/
> return func(arg, **opt)
> File "/Users/
> self.cmd.
> File "/Users/
> self.finalize(
> File "/Users/
> wanted_couplings)
> File "/Users/
> wanted_lorentz, wanted_couplings)
> File "/Users/
> aloha_model.
> File "/Users/
> abstract_
> File "/Users/
> text = writer.
> File "/Users/
> core_text = self.define_
> File "/Users/
> formatted = '(%s)*%s' % tuple(formatted
> TypeError: not enough arguments for format string
> MadGraph5_aMC@NLO Options
> ----------------
> complex_mass_scheme : False
> 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
> delphes_path : ./Delphes
> 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 : None (user set)
> madanalysis_path : ./MadAnalysis
> mg5amc_
> ninja : ./HEPTools/lib
> output_dependencies : external
> pjfry : None (user set)
> 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.
Can you help with this problem?
Provide an answer of your own, or ask Salvator Lombardo for more information if necessary.