qcmr.moldenformat
Read and write Molden Format.
Note: This package provides an interface for files in molden format, but is not in any way affiliated with Molden program or its Author.
Usage
-
Reading Molden Format:
from qcmr.moldenformat import read_moldenformat mf = read_moldenformat('h2o.molden') print(mf.atoms) print(mf.moenergies)
Above,
mfreturned byread_moldenformat()is an instance of classMoldenFormat. It always containing attributes:atomsandlength_unit. It may contain other attributes, in particulargbasis(GTO basis set) orsbasis(STO basis set) as well asmoenergies,mooccups,mosymsandmocoeffsrelated to molecular orbitals. These are defined analogously as data parsed by cclib. The history of geometry optimization is stored in attributegeometries. Anything not parsed by current implementation is stored as ASCII text in attributeextensions. -
Writing Molden Format
from qcmr.moldenformat import write_moldenformat write_moldenformat(data, 'h2o.molden')
Above,
datacould be either a genuine object of classMoldenFormat(returned byread_moldenformat(), see above) or any object containing identically named attributes, from which a validMoldenFormatobject could be constructed. It may also be a dictionary containing the relevant attributes as keys. Example of such usage:data = { 'atoms': [ ('O', [0.000000, 0.000000, 0.114879]), ('H', [0.000000, 0.750347, -0.459515]), ('H', [0.000000, -0.750347, -0.459515]), ], 'length_unit': 'Angstrom' } write_moldenformat(data, 'h2o.molden')
Metadata
Release files for qcmr.moldenformat 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qcmr_moldenformat-0.1.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qcmr_moldenformat-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / qcmr_moldenformat-0.1.tar.gz
| Download URL | qcmr_moldenformat-0.1.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9dc43331affd8c3a7ff243517c023fc6d87e007bc8e8375371712143e072ca40
|
|
BLAKE2b-256 checksum How to use checksums |
f800c6a4c7904c93429a9c7585aeffb2ec60f1b687440280a97240adf2311dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Release files / qcmr_moldenformat-0.1-py3-none-any.whl
| Download URL | qcmr_moldenformat-0.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a020ac9412ddc58eb1d4cdcbc393b2adab1b76819e510c390c50f0fc9853473
|
|
BLAKE2b-256 checksum How to use checksums |
8dca39925f060a1e777d8557dfa44ee67b997e6c1b65abd6da246ba80ccfbce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|