mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Improve Materials.export_to_xml comment
This commit is contained in:
parent
b083e35f2e
commit
a6bd9a86c5
1 changed files with 3 additions and 1 deletions
|
|
@ -1177,7 +1177,9 @@ class Materials(cv.CheckedList):
|
|||
if p.is_dir():
|
||||
p /= 'materials.xml'
|
||||
|
||||
# Open the file in write mode.
|
||||
# Write materials to the file one-at-a-time. This significantly reduces
|
||||
# memory demand over allocating a complete ElementTree and writing it in
|
||||
# one go.
|
||||
with open(str(p), 'w', encoding='utf-8',
|
||||
errors='xmlcharrefreplace') as fh:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue