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

Uploaded Source

Built Distributions

ham2spec-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl (216.6 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

ham2spec-0.5.0-cp38-cp38-macosx_10_7_x86_64.whl (216.3 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for ham2spec-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d0de31cfca38f747cb893efad917a44e85dcde32c187305e9d112173f200190b
MD5 9cd32de82ed0ae475e292585c3724f99
BLAKE2b-256 9e9b75534dfea5368da20a7b722f259141f327354ba876f46631c3c35cceacf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.5.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a11e89d163778248cd406a08d16508ba1c23a19a51d903b58deacab112fd7170
MD5 2a7f18e0bc1324c1745ae03411a8b327
BLAKE2b-256 070dee24b5e2579ac64bf4081a04f0c7725be72a28ad3e1ca01b9d92d285ce43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ham2spec-0.5.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dbeaf816a5c89a5da85f6dd3ac877068c33145d71b6eee84a94f29578cc0a949
MD5 cbff7007a568c3c26a373395dda2984c
BLAKE2b-256 4485705d8b57598f37111735a5cd104ba3d8155278ee334706801774aa373dc4

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