Not valid argument when entering card for Delphes

Asked by Alvaro Lopez

Hello,

I have recently updated my Madgraph version and have found some problem while trying to use Delphes. I run some simulations that could not be finished by Delphes due to a reported bug in https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/305. To solve this problem, I tried to specify interactively a path to my delphes card. My code lines is:

>launch -i GMSB_2goldstini_2mu

GMSB_2goldstini_2mu>delphes run_19

INFO: prepare delphes run
WARNING: program gunzip -c /home/alopezs/Desktop/MG5_aMC_v2_2_2/GMSB_2goldstini_2mu/Events/run_19/tag_1_pythia_events.hep.gz launch ends with non zero status: 1. Stop all computation
INFO: remove job currently running
Do you want to edit a card (press enter to bypass editing)?
  1 / delphes : delphes_card.dat
  9 / plot : plot_card.dat
 you can also
   - enter the path to a valid card.
 [0, done, 1, delphes, 9, plot, enter path][60s to answer]
>Unhandled exception in thread started by <bound method MultiCore.launch of <madgraph.various.cluster.MultiCore object at 0x7f308d1a6590>>
Traceback (most recent call last):
  File "/home/alopezs/Desktop/MG5_aMC_v2_2_2/madgraph/various/cluster.py", line 501, in launch
    log = open(glob.glob(pjoin(cwd,'*','log.txt'))[0]).read()
IndexError: list index out of range

>Cards/delphes_card_ATLAS.dat

 but I get the following error message :
> not valid argument. Valid argument are file path or value in (0,done,1,delphes,9,plot).

When I entered the delphes card path in previous version, everything worked finely but now it doesn't, that is why I am a bit confused.

Thank you in advance for your help.

Question information

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

Hi,

> I have recently updated my Madgraph version and have found some problem while trying to use Delphes. I run some simulations that could not be finished by Delphes due to a reported bug in https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/305. To solve this problem, I tried to specify interactively a path to my delphes card. My code lines is:

This should be fixed in 2.2.2, so the default card should work now.

> When I entered the delphes card path in previous version, everything worked finely but in the new version, that is why I am a bit confused about why it doesn’t work now.

Actually, when you are answering, the questions the code is already performing one operation: He is unzipping the input file (in this case the hep file).
This part of the code did not change since a couple of version so this is weird that it was working before and not with 2.2.2.

Actually the error that you report is not directly linked to MadGraph. The problem is that the unzipping of the file fails for some reason.
could you run the following code in a shell:
> gunzip -c /home/alopezs/Desktop/MG5_aMC_v2_2_2/GMSB_2goldstini_2mu/Events/run_19/tag_1_pythia_events.hep.gz > /home/alopezs/Desktop/MG5_aMC_v2_2_2/GMSB_2goldstini_2mu/Events/run_19/tag_1_pythia_events.hep

It might indicates what the problem is.
(corrupted file/quota problem/…)

Cheers,

Olivier

On Nov 10, 2014, at 10:26 AM, Alvaro Lopez <email address hidden> wrote:

> New question #257273 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/257273
>
> Hello,
>
> I have recently updated my Madgraph version and have found some problem while trying to use Delphes. I run some simulations that could not be finished by Delphes due to a reported bug in https://cp3.irmp.ucl.ac.be/projects/delphes/ticket/305. To solve this problem, I tried to specify interactively a path to my delphes card. My code lines is:
>
>> launch -i GMSB_2goldstini_2mu
>
> GMSB_2goldstini_2mu>delphes run_19
>
> INFO: prepare delphes run
> WARNING: program gunzip -c /home/alopezs/Desktop/MG5_aMC_v2_2_2/GMSB_2goldstini_2mu/Events/run_19/tag_1_pythia_events.hep.gz launch ends with non zero status: 1. Stop all computation
> INFO: remove job currently running
> Do you want to edit a card (press enter to bypass editing)?
> 1 / delphes : delphes_card.dat
> 9 / plot : plot_card.dat
> you can also
> - enter the path to a valid card.
> [0, done, 1, delphes, 9, plot, enter path][60s to answer]
>> Unhandled exception in thread started by <bound method MultiCore.launch of <madgraph.various.cluster.MultiCore object at 0x7f308d1a6590>>
> Traceback (most recent call last):
> File "/home/alopezs/Desktop/MG5_aMC_v2_2_2/madgraph/various/cluster.py", line 501, in launch
> log = open(glob.glob(pjoin(cwd,'*','log.txt'))[0]).read()
> IndexError: list index out of range
>
>> Cards/delphes_card_ATLAS.dat
>
>
> but I get the following error message :
>> not valid argument. Valid argument are file path or value in (0,done,1,delphes,9,plot).
>
> When I entered the delphes card path in previous version, everything worked finely but in the new version, that is why I am a bit confused about why it doesn't work now.
>
> Thank you in advance for your help.
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Alvaro Lopez (alvarolopezsolis) said :
#2

Thank you very much for your answer. Actually, for this run I had previously run pythia + delphes and it seems it didn't work quite well. Concerning my problem with introducing the correct delphes card path, I just had to type the folder GMSB_2goldstini_2mu/Cards/delphes_card_ATLAS.dat to introduce the correct path and not just Cards/delphes_card_ATLAS.dat

Cheers
Alvaro

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

> Concerning my problem with introducing the correct delphes card path, I
> just had to type the folder
> GMSB_2goldstini_2mu/Cards/delphes_card_ATLAS.dat to introduce the
> correct path and not just Cards/delphes_card_ATLAS.dat

This actually depends from which directory you are.
The path to enter is relative to the directory from which you start the executable.

Cheers,

Olivier

On Nov 10, 2014, at 1:26 PM, Alvaro Lopez <email address hidden> wrote:

> Question #257273 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/257273
>
> Status: Answered => Solved
>
> Alvaro Lopez confirmed that the question is solved:
> Thank you very much for your answer. Actually, for this run I had
> previously run pythia + delphes and it seems it didn't work quite well.
> Concerning my problem with introducing the correct delphes card path, I
> just had to type the folder
> GMSB_2goldstini_2mu/Cards/delphes_card_ATLAS.dat to introduce the
> correct path and not just Cards/delphes_card_ATLAS.dat
>
> Cheers
> Alvaro
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.