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.4.0.tar.gz
.
File metadata
- Download URL: ham2spec-0.4.0.tar.gz
- Upload date:
- Size: 103.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a72879931969c37ee53da9e78221ef339ec654e2a86882a8f920273971ff0d |
|
MD5 | e9666639c6d12d36d03f0f1879018a8a |
|
BLAKE2b-256 | c81a7377b080836eac016b672a1ce060c130b2210cf0b19b659d8a8ed360797f |
File details
Details for the file ham2spec-0.4.0-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: ham2spec-0.4.0-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 203.4 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 | 291826400f19cefdc8ebe87bf42c967f28cd040bd6df2d592e65207b8a2142ca |
|
MD5 | 6aa8b9d9e52d43bab6cf9c68d74bc43c |
|
BLAKE2b-256 | cd854bcb9c8a2f48f4e31ac514d800e26fc6532955e9fea75c2a0cc051173476 |
File details
Details for the file ham2spec-0.4.0-cp38-cp38-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: ham2spec-0.4.0-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 203.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 | 53f95116d061ec8b232fa29ea401b35306ceeb498cfc1864b1b34b0393e6e496 |
|
MD5 | 271e9f778a9dcc7435da2945277ed18a |
|
BLAKE2b-256 | 4ed454dcd0674f455f2ecd9e709abedbf79670c5b74885f318d95269dc85a85e |