pyne/pyne — Issue #19: Reading YP block in endf70a data from MCNP fails
Author: paulromano
Created: 2011-11-11 14:40:13+00:00
State: open
Labels: bug

Loading nuclide N-15 at 294.0 K (7015.70c)
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)

/home/paulromano/pyne/pyne/ in ()

/home/paulromano/pyne/pyne/ace.py in read(self)
121
122 # Read all data blocks

--> 123 table._read_all()
124
125 lines = lines[12+n_lines:]

/home/paulromano/pyne/pyne/ace.py in _read_all(self)
201 # Read DLWP block

202 # Read YP block

--> 203 self._read_yp()
204 self._read_fis()
205 self._read_unr()

/home/paulromano/pyne/pyne/ace.py in _read_yp(self)
921 self.index = self.JXS[20]
922 NYP = self._get_int()
--> 923 self.MT_for_photon_yield = self._get_int(NYP)
924
925 def _read_fis(self):

/home/paulromano/pyne/pyne/ace.py in _get_int(self, n_values)
988 return values
989 else:
--> 990 value = int(self.XSS[self.index])
991 self.index += 1
992 return value

IndexError: list index out of range