mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Addressing some more PR comments. A couple of typo fixes too.
This commit is contained in:
parent
6f7a6febd3
commit
5d1ead2e6a
8 changed files with 7 additions and 16 deletions
|
|
@ -11,7 +11,7 @@ def clean_indentation(element, level=0, spaces_per_level=2, trailing_indent=True
|
|||
spaces_per_level : int
|
||||
Number of spaces per indentation level (default 2)
|
||||
trailing_indent : bool
|
||||
Whether or not to include an indentation after closing the element
|
||||
Whether or not to add indentation after closing the element
|
||||
|
||||
"""
|
||||
i = "\n" + level*spaces_per_level*" "
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ class Model:
|
|||
Whether or not to remove redundant surfaces from the geometry when
|
||||
exporting.
|
||||
filename : str
|
||||
Name of the single XML file to create (only used :math:`separate_xmls` if False)
|
||||
Name of the single XML file to create (only used :math:`separate_xmls` is False)
|
||||
|
||||
.. versionadded:: 0.13.1
|
||||
|
||||
|
|
|
|||
|
|
@ -359,11 +359,7 @@ bool read_model_xml() {
|
|||
fmt::format("No <materials> node present in the {} file.", xml_filename));
|
||||
}
|
||||
|
||||
// find materials node this object cannot be used after being passed to the
|
||||
// cross section reading function below
|
||||
auto materials_node = root.child("materials");
|
||||
read_cross_sections_xml(materials_node);
|
||||
|
||||
read_cross_sections_xml(root.child("materials"));
|
||||
read_materials_xml(root.child("materials"));
|
||||
|
||||
// Read geometry
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
from .test import model
|
||||
|
|
@ -1 +0,0 @@
|
|||
from .test import model
|
||||
|
|
@ -1 +0,0 @@
|
|||
from .test import model
|
||||
|
|
@ -9,10 +9,10 @@ from tests.testing_harness import PyAPITestHarness, colorize
|
|||
|
||||
# use a few models from other tests to make sure the same results are
|
||||
# produced when using a single model.xml file as input
|
||||
from ..adj_cell_rotation import model as adj_cell_rotation_model
|
||||
from ..lattice_multiple import model as lattice_mult_model
|
||||
from ..energy_laws import model as energy_laws_model
|
||||
from ..photon_production import model as photon_prod_model
|
||||
from ..adj_cell_rotation.test import model as adj_cell_rotation_model
|
||||
from ..lattice_multiple.test import model as lattice_mult_model
|
||||
from ..energy_laws.test import model as energy_laws_model
|
||||
from ..photon_production.test import model as photon_prod_model
|
||||
|
||||
|
||||
class ModelXMLTestHarness(PyAPITestHarness):
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
from .test import model
|
||||
Loading…
Add table
Add a link
Reference in a new issue