pyiron_contrib.atomistics.atomicrex.utility_functions module

pyiron_contrib.atomistics.atomicrex.utility_functions.write_pretty_xml(elem, filename)[source]

The files directly written with xml.etree.ElemenTrees contain no newlines and indents. This is a helper function to write them in a human readable way.

Parameters
  • elem (ElementTree) – xml.etree.ElementTree ElementTree object to be written

  • filename (string) – name for the xml file