RE: [fluka-discuss]: flair example

From: Vasilis Vlachoudis <Vasilis.Vlachoudis_at_cern.ch>
Date: Wed, 2 Oct 2013 10:11:01 +0000

Hi Zhiyi,

you found an unprotected case (bug)
it seems you are trying to make a resnuclei plot out of cycle not from the merged data of the cycles.

Best Regards
Vasilis Vlachoudis
Dep EN, CERN
CH-1211 GENEVA 23
SWITZERLAND

Phone: +41-22 767 9851
GSM: +41-76 487 4378
Fax: +41-22 766 9644


________________________________________
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: 01 October 2013 19:13
To: fluka-discuss_at_fluka.org
Subject: [fluka-discusfs]: flair example

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 Wed Oct 02 2013 - 13:00:38 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 02 2013 - 13:00:39 CEST