Addressing some more PR comments. A couple of typo fixes too.

This commit is contained in:
Patrick Shriwise 2022-11-26 00:46:12 -06:00
parent 6f7a6febd3
commit 5d1ead2e6a
8 changed files with 7 additions and 16 deletions

View file

@ -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*" "

View file

@ -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

View file

@ -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

View file

@ -1,2 +0,0 @@
from .test import model

View file

@ -1 +0,0 @@
from .test import model

View file

@ -1 +0,0 @@
from .test import model

View file

@ -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):

View file

@ -1 +0,0 @@
from .test import model