Skip to main content

Welcome to moseley

The widespread use of point-and-shoot hand held x-ray fluorescence (XRF) instruments in cultural heritage research, would suggest that it is easy enough for anyone to find out the elemental composition of materials. Alas, due to myriads of emission energies, escape peaks and other nuisances, reliable interpretation of x-ray fluorescence spectra is actually hard. If you are not yet deterred, just read the Handheld XRF in Cultural Heritage - A practical workbook for conservators with many, many examples of spectra that was recently made available on-line by the Getty Conservation Institute.

My take on this as a physicist and a python programmer is that instead of learning from data directly (i.e. staring at measured spectra), a nicer route to insight exists. Due to huge efforts and advances of the open source scientific computing community it is nowadays possible to install readily available python packages and create physics simulations and visualizations with a few lines of computer code. Once you understand why certain patterns of peaks appear, it becomes much more easy to interpret XRF spectra reliably.

Installation

If you would like to adapt this plot to your own needs, for instance to to see what happens if you change beam energy, you can install this package yourself.

$ pip install moseley 

Usage

See documentation: https://fligt.github.io/moseley/

Metadata

Release files for moseley 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moseley 2.1.0
File Size Uploaded Provenance Actions
moseley-2.1.0.tar.gz 15.4 kB Without provenance Details for moseley-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moseley 2.1.0
File Interpreter ABI Platform Actions
moseley-2.1.0-py3-none-any.whl Python 3 none any Details for moseley-2.1.0-py3-none-any.whl

Total release size: 34.8 kB

Release files / moseley-2.1.0.tar.gz

Download URL moseley-2.1.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e2ab1a6883fe439b28873e79ebb93f564a1cc02dab5121db5566b5f6f4c33813
BLAKE2b-256 checksum
How to use checksums
930def05998518d4d876093a95124c5960f0fcc240f9de54010a6fe5feaa51ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / moseley-2.1.0-py3-none-any.whl

Download URL moseley-2.1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9398acc4f53c94fe9cdf954c160dc3ce7b300ca31694a35fa5f662a646878a2
BLAKE2b-256 checksum
How to use checksums
7deeaca068368f09bbec7520b404ff2160b250250584b225ba34856caa11ae72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for moseley 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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