[fluka-discuss]: RE: Flair problem

From: James Ryan <james.ryan-4_at_postgrad.manchester.ac.uk>
Date: Fri, 28 Mar 2014 01:19:29 +0000

Hi Vasilis,


I have found the rather embarrassing cause of my error, I had a blank line at the beginning of my input file!


Many thanks regardless!

James Ryan
Nuclear FiRST DTC
University of Manchester
james.ryan-4_at_postgrad.manchester.ac.uk
+447890 486 709

________________________________
From: Vasilis Vlachoudis <Vasilis.Vlachoudis_at_cern.ch>
Sent: 27 March 2014 8:51 PM
To: James Ryan; fluka-discuss_at_fluka.org
Subject: RE: Flair problem

Hi James,

can you send the input that causes the problem?

Vasilis

________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of James Ryan [james.ryan-4_at_postgrad.manchester.ac.uk]
Sent: 27 March 2014 18:33
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Flair problem


Dear FLUKA experts,


I've updated to the new version of flair, and when I go to load an input file I get this error (in the terminal):


[17:01:24] -bash-4.2$ Traceback (most recent call last):
  File "/samdata1/jryan/FLUKA/flair-2.0/tkFlair.py", line 1210, in __call__
    return self.func(*args)
  File "/samdata1/jryan/FLUKA/flair-2.0/flair.py", line 989, in loadInput
    self.project.loadInput(filename)
  File "/samdata1/jryan/FLUKA/flair-2.0/Project.py", line 1685, in loadInput
    self.input.read(self.inputFile)
  File "/samdata1/jryan/FLUKA/flair-2.0/Input.py", line 2817, in read
    if self.parse(): return True
  File "/samdata1/jryan/FLUKA/flair-2.0/Input.py", line 3063, in parse
    self._addCard(Card(tag, what, self._comment, extra))
  File "/samdata1/jryan/FLUKA/flair-2.0/Input.py", line 1275, in __init__
    self.changeTag(tag, False)
  File "/samdata1/jryan/FLUKA/flair-2.0/Input.py", line 1290, in changeTag
    self.info = CardInfo.get(tag)
  File "/samdata1/jryan/FLUKA/flair-2.0/Input.py", line 812, in get
    if card[0] not in ("$","#"):
IndexError: string index out of range

?If anyone could point me in the right direction it would be much appreciated!


James Ryan
Nuclear FiRST DTC
University of Manchester
james.ryan-4_at_postgrad.manchester.ac.uk
+447890 486 709
Received on Fri Mar 28 2014 - 03:33:05 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 28 2014 - 03:33:06 CET