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

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
File Size Uploaded
qcmr_moldenformat-0.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qcmr.moldenformat 0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1 This release

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