iodata.formats.molden module¶
Molden file format.
Many QC codes can write out Molden files, e.g. Molpro, Orca, PSI4, Molden, Turbomole. Keep in mind that several of these write incorrect versions of the file format, but these errors are corrected when loading them with IOData.
- load_one(lit, norm_threshold=0.0001)[source]¶
Load a single frame from a Molden file.
- Parameters:
lit (
LineIterator
) – The line iterator to read the data from.norm_threshold (
float
) – When the normalization of one of the orbitals exceeds norm_threshold, a correction is attempted or an error is raised when no suitable correction can be found.
- Return type:
- Returns:
result (dict) – A dictionary with IOData attributes. The following attributes are guaranteed to be loaded:
atcoords
,atnums
,atcorenums
,mo
,obasis
. The following may be loaded if present in the file:title
.
- prepare_dump(data, allow_changes, filename)[source]¶
Check the compatibility of the IOData object with the Molden format.
- Parameters:
- Return type:
- Returns:
data – The given
IOData
object or a shallow copy with some new attributes.- Raises:
PrepareDumpError – If the given
IOData
instance is not compatible with the WFN format.PrepareDumpWarning – If the a converted
IOData
instance is returned.