Comment 2 for bug 1627513

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

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/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 about this bug go to:
>> https://bugs.launchpad.net/mg5amcnlo/+bug/1627513/+subscriptions
>>
>
>
> --
> Valentin
>
> --
> 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 about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1627513/+subscriptions