Skip to main content

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.

pypi zenodo Documentation Coverage Status pre-commit.ci status

PyTest Linting Documentation

Python SemVer Code style: black Ruff Code doc: numpydoc

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

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.2.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.2.0-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kkcalc2-1.2.0.tar.gz
Algorithm Hash digest
SHA256 25fa36c56f82e2aaf617724c7ce85d67f1743ca059f016b06adaaaa53b73bf85
MD5 a87a4c34911b39d72b40b59317948574
BLAKE2b-256 d2630d842c4506604e5a2e686458791da5b574ce6c773c89ebc36dfc615b8767

See more details on using hashes here.

Provenance

The following attestation bundles were made for kkcalc2-1.2.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.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for kkcalc2-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e76db2221b3d084a974c11db97d617597be1a546d8bef9f5794013b0a036d788
MD5 d26869dc82ec339129fe47d2cafe6aa5
BLAKE2b-256 dfc733e42cb56ccce0e1496aedcd98601344098a6691e21786d7f8f6460bbdbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for kkcalc2-1.2.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.

Release history Release notifications | RSS feed

1.2.1

2 files

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page