Skip to content

Commit

Permalink
DEV Update burnup index to be consistent with zero-indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Johnson committed Mar 6, 2019
1 parent 85d6f3a commit 692b617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serpentTools/parsers/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def _gather_univdata(self, func):

# position in matrix
uIndex = univOrder.index(univKey[0])
bIndex = univKey[2] - 1
bIndex = univKey[2]

for expName, uncName in zip(
('infExp', 'b1Exp', 'gc'), ('infUnc', 'b1Unc', 'gcUnc')):
Expand Down
2 changes: 1 addition & 1 deletion serpentTools/tests/test_toMatlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_dumpedUnivData(self):
self.assertTrue(univKey[0] in univOrder,
msg="{} // {}".format(univKey, univOrder))
uIndex = univOrder.index(univKey[0])
actBurnIx = univKey[2] - 1
actBurnIx = univKey[2]
self.assertTrue(actBurnIx in burnOrder,
msg="{} // {}".format(univKey, burnOrder))
burnIndex = burnOrder.index(actBurnIx)
Expand Down

0 comments on commit 692b617

Please sign in to comment.