Skip to main content

Kramers-Kronig transforms for optical data.

Project description

kkcalc2 is a comprehensive toolkit for calculating Kramers Kronig transforms of X-ray absorption/dispersion data, and is built to the feature-rich standards of xraysoftmat.

Python SemVer Code style: black Ruff Code doc: numpydoc

pypi Documentation Coverage Status pre-commit.ci status

PyTest Linting Documentation

Introduction

kkcalc2 is an open-source python package to calculate the Kramers-Kronig (inverse) transform of X-ray absorption (dispersion) data:

$$f_2(E) = \frac{2}{\pi} P \int_{0}^{\infty}\frac{x f_1(x)}{x^2 - E^2} dx + \mathcal{Z}^\star$$

where $f_1$ and $f_2$ are the real and imaginary parts of the complex index of refraction, respectively, $\mathcal{Z}^\star$ is the relativistic correction, and $P$ denotes the Cauchy principal value at ($x=E$).

kkcalc2 uses a polynomial representation algorithm developed by Watts [1].

This package provides an object oriented API, to evaluate optical constants (index of refraction, absorption and dispersion, etc.), extend measurement spectra with databases, or can be accessed through a PyQT6 GUI interface. Documentation can be found at readthedocs, and releases (including documentation and executable builds) can be found at github.

References

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

kkcalc2-1.0.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kkcalc2-1.0.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file kkcalc2-1.0.0.tar.gz.

File metadata

  • Download URL: kkcalc2-1.0.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kkcalc2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad53f1c1da41160f5cb32bf7ab5e4f86e22407a3feb3a9da842ca90d4895fcad
MD5 6012cabac9df8b5f92460f4f548baa18
BLAKE2b-256 34a9250aaebd44f77f8da90b7f33a85fa3fc3444022daf843ebc09f8f76f42d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kkcalc2-1.0.0.tar.gz:

Publisher: release.yml on xraysoftmat/kkcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kkcalc2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kkcalc2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kkcalc2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47bd63b10972b3f0439e8175ff532aee4156c572d26b201a1d1388e5d59847a2
MD5 d03ecafee9d544658ccc3483ac15aca4
BLAKE2b-256 81379068a9b282f02c9a18b4e6afc7485d4d9a75ebc2e36e896f02fe56d226bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for kkcalc2-1.0.0-py3-none-any.whl:

Publisher: release.yml on xraysoftmat/kkcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page