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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for ham2spec-0.3.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cfbf4d8ed796b64c07953f458f5f9785d3984565bba9d51dbd7adfd587087e7 |
|
MD5 | cfe2c0eda3a1caf69bb290b65aff2abf |
|
BLAKE2b-256 | 33bca8b9ef63bff16a39eba2da926740f576189455f82bae94f5569a969863c3 |
Hashes for ham2spec-0.3.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab194a0fdf0c6c8d5137a6473edf9a8c0e95faf7e88299f49d3116af7820642 |
|
MD5 | dd00763dd2c80565105d3fc5e294cb88 |
|
BLAKE2b-256 | 134335caf444ce08c80b58c147a091636a9571bbc897973a35e53a3e39868f37 |