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
File details
Details for the file ham2spec-0.6.0.tar.gz
.
File metadata
- Download URL: ham2spec-0.6.0.tar.gz
- Upload date:
- Size: 123.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94404aadde9f36461768931da52136a96c87d92ac37a70aeb261e39dd1f89bb6 |
|
MD5 | e4c14a61c4624746cc34b46cb3a775ee |
|
BLAKE2b-256 | 12509fb2c5cca54415d885df42aea03346909eb39e9c0a00b328d64548b493d6 |
File details
Details for the file ham2spec-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: ham2spec-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 260.3 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 321aca28e67044b20ed448365808d6c5c3653a5e3de303bd6abbca9e91fb4322 |
|
MD5 | 70a5c7426dc0239fe2bc30c88da2e672 |
|
BLAKE2b-256 | 88c20daa62689c1574204007f591d4f0f934daec2fef409116a39098edef78c3 |
File details
Details for the file ham2spec-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: ham2spec-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 260.3 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59993b6c6c51e8579489a9a9891c9e508dcf00db277bbae31a76fb80288ebb1c |
|
MD5 | 32890fbe82555b23b06d3081d1f8f39a |
|
BLAKE2b-256 | 7f8265fc656508fe90213c856a052af9fc22aebaeef6839c23cdd014dc010561 |