mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fixed ScatterMatrix.print_xs string format issue
This commit is contained in:
parent
f237dadee0
commit
c5ea0c05b6
1 changed files with 2 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue