Skip to content

Commit

Permalink
fix the bug in function Material.from_xml_element (mat.depletable)
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-skywalker committed Jan 25, 2025
1 parent 2bea7f3 commit b1d0cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmc/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ def from_xml_element(cls, elem: ET.Element) -> Material:

if 'volume' in elem.attrib:
mat.volume = float(elem.get('volume'))
mat.depletable = bool(elem.get('depletable'))
mat.depletable = elem.get('depletable')=="ture"

# Get each nuclide
for nuclide in elem.findall('nuclide'):
Expand Down

0 comments on commit b1d0cf2

Please sign in to comment.