to_mae
- qcelemental.molparse.to_mae(molecule, filename, *, overwrite=True, permissive=False)[source]
Write a QCSchema Molecule to a Maestro structure file.
- Parameters:
molecule (Molecule | Mapping[str, Any]) – A QCSchema Molecule model or mapping. Coordinates are interpreted as bohr.
filename (str | PathLike[str]) – Maestro file in
.maeor.maegzformat.overwrite (bool) – Overwrite an existing file. When
False, append the structure.permissive (bool) – Round unsupported QCSchema bond orders to the nearest Maestro order from 0 through 3. A warning describes every lossy conversion. By default, unsupported bond orders raise
ValueError.
- Return type:
None
Notes
QCSchema counterpoise atoms retain their element and receive Maestro’s
i_m_counterpoiseproperty. Arbitrary QCSchema extras and Maestro visualization properties are not written.