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

Uploaded Source

Built Distributions

ham2spec-0.2.2-cp39-cp39-macosx_10_7_x86_64.whl (195.3 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

ham2spec-0.2.2-cp38-cp38-macosx_10_7_x86_64.whl (195.2 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ham2spec-0.2.2.tar.gz
Algorithm Hash digest
SHA256 17638b7a9c57e25a6f1f0ddbedd06280f4fb678034347087fbfe6bcf33533241
MD5 5edd22842cb135b8536f9a504040c216
BLAKE2b-256 ef33e44a4b81dbe9a2a90234629d5d62066c5494be3c010ab5f44dd3bc2771d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.2.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dd4f9cbf8b379c82458efd7ea14a5e39eabf6c27005e92248770c0d40c7f9d56
MD5 3adcd94a45ff3588b8f836e9b8d2a030
BLAKE2b-256 fdf8bbeef2443b840e21d8626a76ee24ed2bbb15bc893722a56d2093c9386800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.2.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 617599828d94b244a4285a4be6ee9f8d98265d51127e012bd403a6df10303d6a
MD5 830146c6f205b0cabc7f931ff7560575
BLAKE2b-256 9ff05caf92633ed930021ad435a5c17324884a6fea2a6a2f2212e48bf6f983a2

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