diff --git a/openmc/geometry.py b/openmc/geometry.py index f1c038403d..2ea9705fa4 100644 --- a/openmc/geometry.py +++ b/openmc/geometry.py @@ -205,7 +205,7 @@ class GeometryFile(object): sort_xml_elements(self._geometry_file) clean_xml_indentation(self._geometry_file) - # Write the XML Tree to the materials.xml file + # Write the XML Tree to the geometry.xml file tree = ET.ElementTree(self._geometry_file) tree.write("geometry.xml", xml_declaration=True, encoding='utf-8', method="xml") diff --git a/openmc/universe.py b/openmc/universe.py index 62055049d7..6d9bbccb6b 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -1059,7 +1059,7 @@ class HexLattice(Lattice): @Lattice.pitch.setter def pitch(self, pitch): check_type('lattice pitch', pitch, Iterable, Real) - check_length('lattice pitch', pitch, 2, 3) + check_length('lattice pitch', pitch, 1, 2) for dim in pitch: check_greater_than('lattice pitch', dim, 0) self._pitch = pitch