Skip to main content

PyPI version Documentation Status DOI Binder .github/workflows/test_notebooks.yaml

Introduction

xrdfit is a Python package for fitting the diffraction peaks in synchrotron X-ray diffraction (SXRD) and XRD spectra. It is designed to be an easy to use tool for quick analysis of spectra. Features are included for automating fitting over many spectra to enable tracking of peaks as they shift throughout an experiment. xrdfit uses the Python module lmfit for the underlying fitting. xrdfit is designed to be accessible for all researchers who need to process SXRD spectra and so does not require a detailed knowledge of programming or fitting.

Installation

To install as a Python module, type

python -m pip install xrdfit

from the root directory. For developers, you should install in linked .egg mode using

python -m pip install -e .

If you are using a Python virtual environment, you should activate this first before using the above commands.

Documentation

Documentation including an API reference is provided at: https://xrdfit.readthedocs.io/en/latest/

The majority of the documentation is provided as example driven interactive Jupyter notebooks. These are included along with the source code in the "tutorial notebooks" folder. If this package was downloaded from pip, the source can be found on GitHub: https://github.com/LightForm-group/xrdfit

Try it out

You can try out xrdfit directly in your browser with Binder by clicking here.

Note that Tutorial Notebook 4 will not run correctly in Binder as it requires the download of a supplementary dataset which is not included in the source repository due to its size.

Compatibility

The latest version of xrdfit was tested with Python version 3.10. The minimum required Python version is 3.7.

Required libraries

This module uses the Python libraries:

The following libraries are required to use the tutorial documentation workbooks:

Metadata

Release files for xrdfit 1.3.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 xrdfit 1.3.0
File Size Uploaded Provenance
xrdfit-1.3.0.tar.gz 30.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 60.0 kB

Release files / xrdfit-1.3.0.tar.gz

Download URL xrdfit-1.3.0.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2677ce01b805aa75eeed7bab26b1a26543044ab668bab6ebd2e7ff0e60bfe57
BLAKE2b-256 checksum
How to use checksums
8f09a2c4ce4ed308145f4459973b99d581b6373b379c7569ac31de58866571cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / xrdfit-1.3.0-py3-none-any.whl

Download URL xrdfit-1.3.0-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b014227f108d46aa4afa4232a0ffd91cab89b3bfd754a4d4757d91b8619a1df
BLAKE2b-256 checksum
How to use checksums
04d0fc089925176550178077b9f395438d07526adb47d54a0f3f00d10983542f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Security for xrdfit 1.3.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.

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