Skip to main content

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, mf returned by read_moldenformat()is an instance of class MoldenFormat. It always containing attributes: atoms and length_unit. It may contain other attributes, in particular gbasis (GTO basis set) or sbasis (STO basis set) as well as moenergies, mooccups, mosyms and mocoeffs related to molecular orbitals. These are defined analogously as data parsed by cclib. The history of geometry optimization is stored in attribute geometries. Anything not parsed by current implementation is stored as ASCII text in attribute extensions.

  • Writing Molden Format

    from qcmr.moldenformat import write_moldenformat
    write_moldenformat(data, 'h2o.molden')
    

    Above, data could be either a genuine object of class MoldenFormat (returned by read_moldenformat(), see above) or any object containing identically named attributes, from which a valid MoldenFormat object 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qcmr.moldenformat 0.1.1
File Size Uploaded
qcmr_moldenformat-0.1.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qcmr.moldenformat 0.1.1
File Interpreter ABI Platform
qcmr_moldenformat-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / qcmr_moldenformat-0.1.1.tar.gz

Download URL qcmr_moldenformat-0.1.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2a87e14266c306033706f6f3d90cf0718577761a466bfcdcb6f4b1f6e2adf83c
BLAKE2b-256 checksum
How to use checksums
d626a93a44a4f4c77fb5b5a65528cbbf2655c271860e07e94d330bcfb1876446
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.1-py3-none-any.whl

Download URL qcmr_moldenformat-0.1.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7176ad0adefb5b3c5bbb953516ede31999c669cb72c2165c401aecaf0721129
BLAKE2b-256 checksum
How to use checksums
cc1c3ce496cf8342cb6f388282c6d8cca041438d746918ecf18ac3addab6032c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page