diff --git a/openmc/material.py b/openmc/material.py index e336156428..ba70e09b5a 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -587,9 +587,9 @@ class Material(object): if not distrib: if nuclide[2] == 'ao': - xml_element.set("ao", str(nuclide[1])) + xml_element.set("ao", '{0:.12f}'.format(nuclide[1])) else: - xml_element.set("wo", str(nuclide[1])) + xml_element.set("wo", '{0:.12f}'.format(nuclide[1])) if not nuclide[0].scattering is None: xml_element.set("scattering", nuclide[0].scattering) diff --git a/tests/test_element_wo/test_element_wo.py b/tests/test_element_wo/test_element_wo.py index b272077d6d..e2a5726f19 100644 --- a/tests/test_element_wo/test_element_wo.py +++ b/tests/test_element_wo/test_element_wo.py @@ -6,6 +6,7 @@ import sys import numpy as np sys.path.insert(0, os.pardir) +sys.path.insert(0, os.path.join(os.pardir, os.pardir)) from openmc import Material from openmc.data import NATURAL_ABUNDANCE, atomic_mass diff --git a/tests/test_enrichment/test_enrichment.py b/tests/test_enrichment/test_enrichment.py index 74fc234f88..48416885b8 100644 --- a/tests/test_enrichment/test_enrichment.py +++ b/tests/test_enrichment/test_enrichment.py @@ -6,6 +6,7 @@ import sys import numpy as np sys.path.insert(0, os.pardir) +sys.path.insert(0, os.path.join(os.pardir, os.pardir)) from openmc import Material from openmc.data import NATURAL_ABUNDANCE, atomic_mass diff --git a/tests/test_triso/inputs_true.dat b/tests/test_triso/inputs_true.dat index 856581fdef..f4d79a7ab6 100644 --- a/tests/test_triso/inputs_true.dat +++ b/tests/test_triso/inputs_true.dat @@ -1 +1 @@ -5859cd73807c74cce612275817d3e1c6a2b55a347b31925115dbda2d83df60345ea4617cbc3b057a2fcfef4242f0e53d66d569ecffaeed35975ca28307b354c4 \ No newline at end of file +790bb9e31e72798b9407e5daba696fa35f7240feb59a99c081b96afdd5120aa9afe45b791e3293e01ae699512567feaeb7c4a77a592f781bd70a7900c9e28eae \ No newline at end of file diff --git a/tests/test_triso/results_true.dat b/tests/test_triso/results_true.dat index 1716b67f53..71805055c6 100644 --- a/tests/test_triso/results_true.dat +++ b/tests/test_triso/results_true.dat @@ -1,2 +1,2 @@ k-combined: -1.643727E+00 5.233644E-02 +1.572877E+00 1.337067E-02