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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kkcalc2-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 22a8875007fa8c77b8916568888ed9f3101a208ef969b275bed8d6761ebe02fc
MD5 ed9c6c69be1b2fa8d909c53374142c68
BLAKE2b-256 901caed271854ff8d080af1a2013beed19b66f8490784c2a83c1ef781be5708d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kkcalc2-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9da4d4065bb0e7b7ad9fc2cc575a3f37cf1caf6a2048212d288c1aafd25ec7e
MD5 45984bfa09eec533b1f2ac15e2108a9f
BLAKE2b-256 82afcdd629aa9d7dedde10e20598b03a1f6c13bf5ea36343fd294296690a1129

See more details on using hashes here.

Provenance

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

1.2.0

2 files

This release

1.1.0 This release

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