mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fix Python API length checking for hex lat pitch
This commit is contained in:
parent
7a0ee795ec
commit
57a82f80dc
2 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue