Now expand Legendre scores for ScatterMatrix for all orders

This commit is contained in:
Will Boyd 2016-05-14 10:57:47 -04:00
parent fc1734e75a
commit 132fd870d8

View file

@ -1821,10 +1821,9 @@ class ScatterMatrixXS(MGXS):
# Expand scores to match the format in the statepoint
# e.g., "scatter-P2" -> "scatter-0", "scatter-1", "scatter-2"
if self.legendre_order != 0:
tally_key = '{}-P{}'.format(self.rxn_type, self.legendre_order)
self.tallies[tally_key].scores = \
[self.rxn_type + '-{}'.format(i) for i in range(self.legendre_order+1)]
tally_key = '{}-P{}'.format(self.rxn_type, self.legendre_order)
self.tallies[tally_key].scores = \
[self.rxn_type + '-{}'.format(i) for i in range(self.legendre_order+1)]
super(ScatterMatrixXS, self).load_from_statepoint(statepoint)