reweight module not enabling in version 2_5_0_beta2

Bug #1627513 reported by Ramkrishna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Invalid
Undecided
Unassigned

Bug Description

Hi,

I am trying to enable the reweight module in MadGraph version 2_5_0_beta2 but I am not able to do so.

I tried to enter the two commands to do, without success. Below I am pasting the full output of it.

===============================================================
The following switches determine which programs are run:
/--------------------------------------------------------------------------------------------------\
| 1. Choose the shower/hadronization program: shower = Not installed |
| 2. Choose the detector simulation program: detector = Not installed |
| 3. Run an analysis package on the events generated: analysis = No analysis tool interfaced to MG5aMC.|
| 4. Decay particles with the MadSpin module: madspin = OFF |
| 5. Add weights to events for different model hypothesis: reweight = Not available (requires NumPy)|
\--------------------------------------------------------------------------------------------------/
  Either type the switch number (1 to 5) to change its setting,
  Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
  Type 'help' for the list of all valid option
  Type '0', 'auto', 'done' or just press enter when you are done.
 [0, auto, done, madspin=ON, madspin=OFF, madspin, parton, 3][60s to answer]
>5
5 not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
please retry
>reweight = ON
reweight = ON not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
please retry
>help
Here is the list of all valid options:
  auto
  done
  madspin=ON
  madspin=OFF
  madspin
  parton
  0
  3
Here is the list of command available:
  help

==========================================================

So, I see that reweight command is also not shown in the help command list. Is it a bug or I need to something else to enable the reweight cards. Also, I checked and see that NumPy is there which is required by the reweight module. So, I think it should not give me this.

Please suggest how I can fix this?

with regards,
Ram

Revision history for this message
Valentin Hirschi (valentin-hirschi) wrote : Re: [Bug 1627513] [NEW] reweight module not enabling in version 2_5_0_beta2
Download full text (5.3 KiB)

As stated by the following toggle information:

reweight = Not available (requires NumPy)|

You must have installed numPy and f2py in order to have the reweight
functionality enabled. Is this the case?

On Sun, Sep 25, 2016 at 8:43 AM, Ramkrishna <email address hidden>
wrote:

> Public bug reported:
>
> Hi,
>
> I am trying to enable the reweight module in MadGraph version
> 2_5_0_beta2 but I am not able to do so.
>
> I tried to enter the two commands to do, without success. Below I am
> pasting the full output of it.
>
> ===============================================================
> The following switches determine which programs are run:
> /-----------------------------------------------------------
> ---------------------------------------\
> | 1. Choose the shower/hadronization program:
> shower = Not installed |
> | 2. Choose the detector simulation program:
> detector = Not installed |
> | 3. Run an analysis package on the events generated:
> analysis = No analysis tool interfaced to MG5aMC.|
> | 4. Decay particles with the MadSpin module:
> madspin = OFF |
> | 5. Add weights to events for different model hypothesis:
> reweight = Not available (requires NumPy)|
> \-----------------------------------------------------------
> ---------------------------------------/
> Either type the switch number (1 to 5) to change its setting,
> Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
> Type 'help' for the list of all valid option
> Type '0', 'auto', 'done' or just press enter when you are done.
> [0, auto, done, madspin=ON, madspin=OFF, madspin, parton, 3][60s to
> answer]
> >5
> 5 not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=
> OFF,madspin,parton,0,3).
> please retry
> >reweight = ON
> reweight = ON not valid argument. Valid argument are in
> (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
> please retry
> >help
> Here is the list of all valid options:
> auto
> done
> madspin=ON
> madspin=OFF
> madspin
> parton
> 0
> 3
> Here is the list of command available:
> help
>
> ==========================================================
>
> So, I see that reweight command is also not shown in the help command
> list. Is it a bug or I need to something else to enable the reweight
> cards. Also, I checked and see that NumPy is there which is required by
> the reweight module. So, I think it should not give me this.
>
> Please suggest how I can fix this?
>
> with regards,
> Ram
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
>
> ** Tags: reweight v2-5-0beta2
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> Matching subscriptions: all_bugs_subscription, full_bug_report
> https://bugs.launchpad.net/bugs/1627513
>
> Title:
> reweight module not enabling in version 2_5_0_beta2
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hi,
>
> I am trying to enable the reweight module in MadGraph version
> 2_5_0_beta2 but I am not able to do so.
>
> I tried to enter the two commands to do, without success. Below I am
> pasting the full output of it.
>
> ...

Read more...

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :
Download full text (8.3 KiB)

Hi,

The problem is indeed that the code fail to find the f2py executable on your machine.
You can specify that path manually in the input/mg5_configuration.txt configuration file.

Cheers,

Olivier

> On Sep 25, 2016, at 21:42, Valentin Hirschi <email address hidden> wrote:
>
> As stated by the following toggle information:
>
> reweight = Not available (requires NumPy)|
>
> You must have installed numPy and f2py in order to have the reweight
> functionality enabled. Is this the case?
>
> On Sun, Sep 25, 2016 at 8:43 AM, Ramkrishna <email address hidden>
> wrote:
>
>> Public bug reported:
>>
>> Hi,
>>
>> I am trying to enable the reweight module in MadGraph version
>> 2_5_0_beta2 but I am not able to do so.
>>
>> I tried to enter the two commands to do, without success. Below I am
>> pasting the full output of it.
>>
>> ===============================================================
>> The following switches determine which programs are run:
>> /-----------------------------------------------------------
>> ---------------------------------------\
>> | 1. Choose the shower/hadronization program:
>> shower = Not installed |
>> | 2. Choose the detector simulation program:
>> detector = Not installed |
>> | 3. Run an analysis package on the events generated:
>> analysis = No analysis tool interfaced to MG5aMC.|
>> | 4. Decay particles with the MadSpin module:
>> madspin = OFF |
>> | 5. Add weights to events for different model hypothesis:
>> reweight = Not available (requires NumPy)|
>> \-----------------------------------------------------------
>> ---------------------------------------/
>> Either type the switch number (1 to 5) to change its setting,
>> Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
>> Type 'help' for the list of all valid option
>> Type '0', 'auto', 'done' or just press enter when you are done.
>> [0, auto, done, madspin=ON, madspin=OFF, madspin, parton, 3][60s to
>> answer]
>>> 5
>> 5 not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=
>> OFF,madspin,parton,0,3).
>> please retry
>>> reweight = ON
>> reweight = ON not valid argument. Valid argument are in
>> (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
>> please retry
>>> help
>> Here is the list of all valid options:
>> auto
>> done
>> madspin=ON
>> madspin=OFF
>> madspin
>> parton
>> 0
>> 3
>> Here is the list of command available:
>> help
>>
>> ==========================================================
>>
>> So, I see that reweight command is also not shown in the help command
>> list. Is it a bug or I need to something else to enable the reweight
>> cards. Also, I checked and see that NumPy is there which is required by
>> the reweight module. So, I think it should not give me this.
>>
>> Please suggest how I can fix this?
>>
>> with regards,
>> Ram
>>
>> ** Affects: mg5amcnlo
>> Importance: Undecided
>> Status: New
>>
>>
>> ** Tags: reweight v2-5-0beta2
>>
>> --
>> You received this bug notification because you are subscribed to
>> MadGraph5_aMC@NLO.
>> Matching subscriptions: all_bugs_subscription, full_bug_report
>> https://bugs.launchpad.net/...

Read more...

Revision history for this message
Ramkrishna (ramkrishna-sharma71) wrote :

Thanks Olivier & Valentin.

Yes, it was not working because on my cluster f2py is not there. It worked in my pc when I installed f2py.

A suggestion: In option 5 you should also mention about f2py. Like:

      5. Add weights to events for different model hypothesis: reweight = Not available (requires NumPy & f2py)

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1627513] Re: reweight module not enabling in version 2_5_0_beta2
Download full text (3.2 KiB)

Hi,

f2py is technically part of numpy.
This is the reason why we mention numpy since this is the easiest way to install f2py.

Cheers,

Olivier

> On Sep 26, 2016, at 10:21, Ramkrishna <email address hidden> wrote:
>
> Thanks Olivier & Valentin.
>
> Yes, it was not working because on my cluster f2py is not there. It
> worked in my pc when I installed f2py.
>
> A suggestion: In option 5 you should also mention about f2py. Like:
>
> 5. Add weights to events for different model hypothesis: reweight
> = Not available (requires NumPy & f2py)
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1627513
>
> Title:
> reweight module not enabling in version 2_5_0_beta2
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hi,
>
> I am trying to enable the reweight module in MadGraph version
> 2_5_0_beta2 but I am not able to do so.
>
> I tried to enter the two commands to do, without success. Below I am
> pasting the full output of it.
>
> ===============================================================
> The following switches determine which programs are run:
> /--------------------------------------------------------------------------------------------------\
> | 1. Choose the shower/hadronization program: shower = Not installed |
> | 2. Choose the detector simulation program: detector = Not installed |
> | 3. Run an analysis package on the events generated: analysis = No analysis tool interfaced to MG5aMC.|
> | 4. Decay particles with the MadSpin module: madspin = OFF |
> | 5. Add weights to events for different model hypothesis: reweight = Not available (requires NumPy)|
> \--------------------------------------------------------------------------------------------------/
> Either type the switch number (1 to 5) to change its setting,
> Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
> Type 'help' for the list of all valid option
> Type '0', 'auto', 'done' or just press enter when you are done.
> [0, auto, done, madspin=ON, madspin=OFF, madspin, parton, 3][60s to answer]
>> 5
> 5 not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
> please retry
>> reweight = ON
> reweight = ON not valid argument. Valid argument are in (auto,done,madspin=ON,madspin=OFF,madspin,parton,0,3).
> please retry
>> help
> Here is the list of all valid options:
> auto
> done
> madspin=ON
> madspin=OFF
> madspin
> parton
> 0
> 3
> Here is the list of command available:
> help
>
> ==========================================================
>
> So, I see that reweight command is also not shown in the help command
> list. Is it a bug or I need to something else to enable the reweight
> cards. Also, I checked and see that NumPy is there which is required
> by the reweight module. So, I think it should not give me this.
>
> Please suggest how I can fix this?
>
> with regards,
> Ram
>
> To manage notifications abou...

Read more...

Changed in mg5amcnlo:
status: New → Invalid
Revision history for this message
celik (watzinki) wrote :

Hello,

As I have similar issue, I wanted to write below this topic although I am using different version of the Madgraph(MG5_aMc_v2_6_4) installed on my Mac. The issue is "reweight = Not available" and I cannot change it to "ON" mode. I have installed Numpy on my computer as well.

Any help is appreciated.

Ali

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

Maybe numpy installed f2py to a weird location and that we are not able to find it.
Could you edit the configuration file (input/mg5_configuration.txt)
and replace the line
# f2py_compiler = None
by
f2py_compiler = XXXX
(where XXXX is the path to your f2py executable)

Cheers,

Olivier

Revision history for this message
celik (watzinki) wrote :

Hi Olivier,

Seems I have control over the flag for Reweight now with your solution.

Thank you again!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.