Update openmc/deplete/nuclide.py per @pshriwise suggestion

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
Paul Romano 2022-09-30 13:30:23 -05:00 committed by GitHub
parent 10abbe910a
commit 6719aa218e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -321,7 +321,7 @@ class Nuclide:
# TODO: Ugly hack to deal with the fact that
# 'source.to_xml_element' will return an xml.etree object
# whereas here lxml is being used preferentially. We should just
# switch to use lxml everywhere,
# switch to use lxml everywhere
import xml.etree.ElementTree as etree
src_elem_xmletree = source.to_xml_element('source')
src_elem = ET.fromstring(etree.tostring(src_elem_xmletree))