Skip to main content

A Python extension for computing spectra from Hamiltonians

Project description

ham2spec

This is a Python extension written in Rust using PyO3 and maturin.

This module computes absorption and circular dichroism (CD) spectra from a Hamiltonian and a set of pigment positions and transition dipole moments. It's primarily used by the fmo_analysis tool.

Installation

Right now this only works on macOS because I only have a macOS system to test on. The primary hurdle to building on other systems is the dependency on LAPACK. Your system will need to have a LAPACK implementation installed, and you'll need to set the correct lapack_src feature.

Development

The Python extension module requires a crate-type of "cdylib", but running examples and requires a crate-type of "rlib". In order to accommodate both you'll need to run tests via

$ cargo test --lib

and examples via

$ cargo run --no-default-features --example example_name

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ham2spec-0.6.1.tar.gz (123.2 kB view details)

Uploaded Source

Built Distributions

ham2spec-0.6.1-cp39-cp39-macosx_11_0_arm64.whl (232.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

ham2spec-0.6.1-cp39-cp39-macosx_10_7_x86_64.whl (260.1 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

ham2spec-0.6.1-cp38-cp38-macosx_11_0_arm64.whl (233.0 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

ham2spec-0.6.1-cp38-cp38-macosx_10_7_x86_64.whl (260.2 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

File details

Details for the file ham2spec-0.6.1.tar.gz.

File metadata

  • Download URL: ham2spec-0.6.1.tar.gz
  • Upload date:
  • Size: 123.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.4

File hashes

Hashes for ham2spec-0.6.1.tar.gz
Algorithm Hash digest
SHA256 78db4d6bdec60bd280adba59ead22955f4bb976799494de22b3b45be7e362800
MD5 379644795bae3d173cbb9e1b3d1cc87c
BLAKE2b-256 14673a4cd3bd116fc614645031a92bd531fc611a40e1fa22e29739d5da35c84a

See more details on using hashes here.

File details

Details for the file ham2spec-0.6.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ham2spec-0.6.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb0bdf208dff18694e233a0e1bf17e826e1baab78eb6f65e7da5864e5d6804d3
MD5 8900b198ec27ec4c16a490cbf974b5c1
BLAKE2b-256 dfd7d010ae95a14475f14d845f6efdbd27587e3a54b24e575f1e685c307a9f4e

See more details on using hashes here.

File details

Details for the file ham2spec-0.6.1-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for ham2spec-0.6.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 5e1629a2551e0b4683c04d6622f457abd3b1c27c0f21a8222b9e71c07fa52138
MD5 8282b8068bdef2424dbbf50843432dc5
BLAKE2b-256 3b30a26e1fad9c2a6067a1fa7632cb55cd017ac1cb3300919230eee3419d0339

See more details on using hashes here.

File details

Details for the file ham2spec-0.6.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ham2spec-0.6.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 429aaa2e26fe0c5bfe8d2f787b21b1dc7309121cc8f15680b0dbffb68900874e
MD5 4e05312cbc016a831324ef4e450a834f
BLAKE2b-256 0757a08b43ed54999a71bc92b543d71e3c8efa3c56b18e14fe92fd6cb00786d5

See more details on using hashes here.

File details

Details for the file ham2spec-0.6.1-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for ham2spec-0.6.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 db154e4394aafd8137c80e759898136ab4a2343265a69e1f2ad389222bc0427c
MD5 49d02e577dbddb6c8f32ef9cfe0c3638
BLAKE2b-256 e571554db96d74c4cd61d2a9bd22451f61ebe7fefb75d14e9a76eb9f69205930

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page