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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kkcalc2-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d76808e01f65a647a5dfbea42611a4f326984b256cb27a8da7d6a0fc4a79163d
MD5 f818178066e8d0259a768e13e46e4a62
BLAKE2b-256 20bb29f703343f29deccaa1abb1ed6c6bb026e69865c3e4c0a1fb83fa410a6a0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kkcalc2-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a909c86b837c086171d1c4db02f539f52abd3ac8994774b4ad433456c839777
MD5 e67a46e4aa80eae3e8becbfe22e4acc4
BLAKE2b-256 3369e1f6f652199ba2313018faa0b5cbeec888df189723cceaacf56473f1ae79

See more details on using hashes here.

Provenance

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

This release

1.2.1 This release

2 files

1.2.0

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