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.0.tar.gz (123.2 kB view details)

Uploaded Source

Built Distributions

ham2spec-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl (260.3 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

ham2spec-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl (260.3 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

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

Hashes for ham2spec-0.6.0.tar.gz
Algorithm Hash digest
SHA256 94404aadde9f36461768931da52136a96c87d92ac37a70aeb261e39dd1f89bb6
MD5 e4c14a61c4624746cc34b46cb3a775ee
BLAKE2b-256 12509fb2c5cca54415d885df42aea03346909eb39e9c0a00b328d64548b493d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.6.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 321aca28e67044b20ed448365808d6c5c3653a5e3de303bd6abbca9e91fb4322
MD5 70a5c7426dc0239fe2bc30c88da2e672
BLAKE2b-256 88c20daa62689c1574204007f591d4f0f934daec2fef409116a39098edef78c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.6.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 59993b6c6c51e8579489a9a9891c9e508dcf00db277bbae31a76fb80288ebb1c
MD5 32890fbe82555b23b06d3081d1f8f39a
BLAKE2b-256 7f8265fc656508fe90213c856a052af9fc22aebaeef6839c23cdd014dc010561

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