error in scan with decimal interval

Asked by Deepanjali Goswami

Hi,

I want to take scan of two parameter in typeIII seesaw model by using below script

import typeIIIseesaw1_UFO
generate e- e+ > tr+ tr-
output scan
launch
set ebeam1 1000
set ebeam2 1000
set Ve scan:range(.001,.06,.002)
set Mtrch scan:range(500,1001,50)
done

But error is coming like ,

Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
/home/poulose/Desktop/MG5_aMC_v2_3_3/models/check_param_card.py:1: DeprecationWarning: integer argument expected, got float
  from __future__ import division
Command "generate_events run_01" interrupted with error:
ValueError : range() step argument must not be zero
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/home/poulose/scan/run_01_tag_1_debug.log'.
Please attach this file to your report.

Can you please tell me whats the mistake I am doing in set Ve scan:range(.001,.06,.002), it works for Mtrch scan with integer.

Thanking you.
Best regards,
Deepanjali

Question information

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

Hi,

> range(.001,.06,.002)

This is not a valid python syntax. (range can only take integer)
I guess that what you need to do is rather
 scan:[m/1000.0 for m in range(1,60,2)]

Cheers,

Olivier

> On 7 Mar 2017, at 10:09, Deepanjali Goswami <email address hidden> wrote:
>
> New question #531158 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/531158
>
> Hi,
>
>
> I want to take scan of two parameter in typeIII seesaw model by using below script
>
> import typeIIIseesaw1_UFO
> generate e- e+ > tr+ tr-
> output scan
> launch
> set ebeam1 1000
> set ebeam2 1000
> set Ve scan:range(.001,.06,.002)
> set Mtrch scan:range(500,1001,50)
> done
>
> But error is coming like ,
>
> Generating 10000 events with run name run_01
> survey run_01
> INFO: compile directory
> /home/poulose/Desktop/MG5_aMC_v2_3_3/models/check_param_card.py:1: DeprecationWarning: integer argument expected, got float
> from __future__ import division
> Command "generate_events run_01" interrupted with error:
> ValueError : range() step argument must not be zero
> Please report this bug on https://bugs.launchpad.net/madgraph5
> More information is found in '/home/poulose/scan/run_01_tag_1_debug.log'.
> Please attach this file to your report.
>
> Can you please tell me whats the mistake I am doing in set Ve scan:range(.001,.06,.002), it works for Mtrch scan with integer.
>
> Thanking you.
> Best regards,
> Deepanjali
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Deepanjali Goswami (g-deepanjali) said :
#2

Hi Olivier,

Thanks a lot for your kind reply.
It solved my problem.

With regards,
Deepanjali