RE: [fluka-discuss]: A bug in ResnucleiPlot.py?

From: Vasilis Vlachoudis <Vasilis.Vlachoudis_at_cern.ch>
Date: Tue, 22 Oct 2013 06:33:42 +0000

Hi Liu,

the bug was fixed from version 1.2-2, please upgrade your version to the latest one 1.2-3

Cheers
Vasilis
________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Zhiyi Liu [zhiyil_at_triumf.ca]
Sent: 22 October 2013 02:47
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: A bug in ResnucleiPlot.py?

Hello,
Nobody gives any hint about my problem. My friend helped figure it out:

In the file: ResnucleiPlot.py,

- Line 555, when stat=false, the variable A is NOT defined, so the error
comes out

Please fix this bug.

Cheers,
Zhiyi.


On 13-10-01 10:13 AM, Zhiyi Liu wrote:
> Hi,
> In the example, tutorial.flair, I tried to make a resnuc plot.
> However, I got an error like this:
> ========
> Traceback (most recent call last):
> File "/data3/zhiyil/FLUKA/flair/flair-1.2/tkFlair.py", line 1166, in
> __call__
> return self.func(*args)
> File "/data3/zhiyil/FLUKA/flair/flair-1.2/PlotFrame.py", line 2323,
> in replot
> self.doPlot()
> File "/data3/zhiyil/FLUKA/flair/flair-1.2/ResnucleiPlot.py", line
> 615, in doPlot
> if not self.writeData():
> File "/data3/zhiyil/FLUKA/flair/flair-1.2/ResnucleiPlot.py", line
> 555, in writeData
> amax = min(2*zh + mh + nmz, len(A))
> UnboundLocalError: local variable 'A' referenced before assignment
> =========
> Any hints? I believe the examples are tested before they are released.
> I am using Flair 1.2.1.
>
> Cheers,
> Zhiyi.
>
Received on Tue Oct 22 2013 - 09:30:32 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 22 2013 - 09:30:33 CEST