From c5ea0c05b6dd93f2fe97c30d74be71194916a93a Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Wed, 25 Jan 2017 19:02:17 -0500 Subject: [PATCH] Fixed ScatterMatrix.print_xs string format issue --- openmc/mgxs/mgxs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/mgxs/mgxs.py b/openmc/mgxs/mgxs.py index 635967b9d2..de90d4397a 100644 --- a/openmc/mgxs/mgxs.py +++ b/openmc/mgxs/mgxs.py @@ -4476,7 +4476,7 @@ class ScatterMatrixXS(MatrixMGXS): string += '\t' + template.format('', in_group, out_group) - string += '{:.2e} +/- {1:.2e}%'.format( + string += '{1:.2e} +/- {1:.2e}%'.format( average_xs[pol, azi, in_group - 1, out_group - 1], rel_err_xs[pol, azi, in_group - 1, @@ -4489,7 +4489,7 @@ class ScatterMatrixXS(MatrixMGXS): for in_group in range(1, self.num_groups + 1): for out_group in range(1, self.num_groups + 1): string += template.format('', in_group, out_group) - string += '{:.2e} +/- {1:.2e}%'.format( + string += '{1:.2e} +/- {1:.2e}%'.format( average_xs[in_group - 1, out_group - 1], rel_err_xs[in_group - 1, out_group - 1]) string += '\n'