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

From: Zhiyi Liu <zhiyil_at_triumf.ca>
Date: Mon, 21 Oct 2013 17:47:21 -0700

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 - 03:36:48 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 22 2013 - 03:36:53 CEST