From 57a82f80dc7e882373479b22c039bd9803565900 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Wed, 8 Jul 2015 21:52:58 -0600 Subject: [PATCH] Fix Python API length checking for hex lat pitch --- openmc/geometry.py | 2 +- openmc/universe.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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