nb_event undefined in systematics.py
Bug #1860747 reported by
Zachary Marshall
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
In the run(self, stdout=sys.stdout) function in systematics.py , there's a sequence that looks like this:
for nb_event,event in enumerate(
stuff()
else:
In the case that self.input is an empty list, nb_event is not defined, and the job crashes. It's a weird situation in which that happens, but it could be handled with a quick and easy error message to avoid the crash.
Thanks,
Zach
Changed in mg5amcnlo: | |
status: | New → Incomplete |
Changed in mg5amcnlo: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Well, in that case we should have a crash (but ok we might one a clear one).
Do you have a reason to not have a crash here?
Cheers,
Olivier
> On 24 Jan 2020, at 07:12, Zachary Marshall <email address hidden> wrote: self.input) : write(' </LesHouchesEve nts>\n' ) cross_sections( all_cross, min(nb_ event,self. stop_event) -self.start_ event+1, stdout) /bugs.launchpad .net/bugs/ 1860747 self.input) : write(' </LesHouchesEve nts>\n' ) cross_sections( all_cross, min(nb_ event,self. stop_event) -self.start_ event+1, stdout) /bugs.launchpad .net/mg5amcnlo/ +bug/1860747/ +subscriptions
>
> Public bug reported:
>
> Hi,
>
> In the run(self, stdout=sys.stdout) function in systematics.py , there's
> a sequence that looks like this:
>
> for nb_event,event in enumerate(
> stuff()
> else:
> self.output.
> self.output.close()
> self.print_
>
> In the case that self.input is an empty list, nb_event is not defined,
> and the job crashes. It's a weird situation in which that happens, but
> it could be handled with a quick and easy error message to avoid the
> crash.
>
> Thanks,
> Zach
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https:/
>
> Title:
> nb_event undefined in systematics.py
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hi,
>
> In the run(self, stdout=sys.stdout) function in systematics.py ,
> there's a sequence that looks like this:
>
> for nb_event,event in enumerate(
> stuff()
> else:
> self.output.
> self.output.close()
> self.print_
>
> In the case that self.input is an empty list, nb_event is not defined,
> and the job crashes. It's a weird situation in which that happens, but
> it could be handled with a quick and easy error message to avoid the
> crash.
>
> Thanks,
> Zach
>
> To manage notifications about this bug go to:
> https:/