Turning off MadSpin writing to mg5_configuration.txt

Asked by Hannes

Hi,

in MG5 2.6.5 MadSpin writes to the global mg5_configuration.txt. This causes an issue when MadGraph is installed on a read-only file system, as it is in our case. Is there a way to turn off this behavior?

Cheers,
Hannes

---

INFO: Running MadSpin
INFO: This functionality allows for the decay of resonances
INFO: in a .lhe file, keeping track of the spin correlation effets.
INFO: BE AWARE OF THE CURRENT LIMITATIONS:
INFO: (1) Only a succession of 2 body decay are currently allowed
************************************************************
* *
* W E L C O M E to M A D S P I N *
* *
************************************************************
INFO: Extracting the banner ...
INFO: process: p p > w+
INFO: options:
INFO: detected model: sm. Loading...
save options text_editor
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
Set group_subprocesses to Auto
Note that you need to regenerate all processes
save options collier
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
save options auto_update
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
save options cluster_type
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
save options OLP
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
save options applgrid
save configuration file to /home/hmildner/HEP/MG5_aMC_v2_6_5/input/mg5_configuration.txt
set fastjet to fastjet-config
...

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Hannes
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Here is a patch:

Cheers,

Olivier

=== modified file 'madgraph/interface/common_run_interface.py'
--- madgraph/interface/common_run_interface.py 2019-03-14 22:11:02 +0000
+++ madgraph/interface/common_run_interface.py 2019-03-26 20:23:02 +0000
@@ -3677,7 +3677,7 @@
         madspin_cmd.mg5cmd.options.update(self.options)
         for key, value in self.options.items():
             if isinstance(value, str):
- madspin_cmd.mg5cmd.exec_cmd( 'set %s %s' %(key,value), errorhandling=False, printcmd=False, precmd=False, postcmd=True)
+ madspin_cmd.mg5cmd.exec_cmd( 'set %s %s --no_save' %(key,value), errorhandling=False, printcmd=False, precmd=False, postcmd=True)
         madspin_cmd.cluster = self.cluster

         madspin_cmd.update_status = lambda *x,**opt: self.update_status(*x, level='madspin',**opt)

Revision history for this message
Hannes (hannes3) said :
#2

Hi Olivier,

thanks a lot for the quick patch!
For our information, is this something that will be included in future MG versions as well or is it just to patch on our side?

Cheers,
Hannes

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

This will be part of 2.6.6

Cheers,

Olivier