Fix Python API length checking for hex lat pitch

This commit is contained in:
Sterling Harper 2015-07-08 21:52:58 -06:00
parent 7a0ee795ec
commit 57a82f80dc
2 changed files with 2 additions and 2 deletions

View file

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

View file

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