Skip to main content

mlgidBASE

Python version Documentation

mlgidBASE is a Python package for machine learning–driven analysis of grazing-incidence wide-angle X-ray scattering (GIWAXS) data. It provides a full workflow from peak detection to matching with known crystal structures.

The package builds on the following components:

  • pygid — for detector image conversion
  • mlgidDETECT — for peak detection
  • pygidFIT — for two-dimensional peak fitting
  • mlgidMATCH — for matching experimental peaks to known structures

Key Features


Installation

Install using pip

pip install mlgidbase

Install from source

First, clone the repository:

git clone https://github.com/mlgid-project/mlgidBASE.git

Then navigate to the project directory and install it in editable mode:

cd mlgidBASE
pip install -e .

How to Use

For full details, see the dedicated tutorials.

Quick Start

from mlgidbase import mlgidBASE

# Initialize analysis from a NeXus file
filename = r'./example/BA2PbI4.h5'
analysis = mlgidBASE(filename=filename)

# Run peak detection
analysis.run_detection()

# Run peak fitting
analysis.run_fitting()

# Run peak matching with preprocessed CIFs
analysis.run_matching(
    cif_prepr='./example/prepr_cifs.pickle'
)

Data Format

The structure of the analysis results saved in the NeXus file is documented in the output file format guide.

It describes how entries, frames, and peak information are stored for further inspection or processing.

Metadata

Release files for mlgidbase 0.1.8

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

Source distribution (sdist)

Source distribution for mlgidbase 0.1.8
File Size Uploaded
mlgidbase-0.1.8.tar.gz 37.5 kB Details

Built distribution (wheel)

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

Total release size: 80.3 kB

Release files / mlgidbase-0.1.8.tar.gz

Download URL mlgidbase-0.1.8.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7d2eef0d12f4caa42f872f68a3a0d975fd899dc4d2a84706200205d3e73850a8
BLAKE2b-256 checksum
How to use checksums
b648e4f2f6daa17a976b3472ed1ac1be9153fddc565957b6d81a9b30e956f192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mlgidbase-0.1.8-py3-none-any.whl

Download URL mlgidbase-0.1.8-py3-none-any.whl
Size 42.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d1eeb24c89113952427a0b577c93c37dda4e7b2a9a4c1d5c22218b3b7c31a57
BLAKE2b-256 checksum
How to use checksums
1eae3d5a75c918d4ccf57b5dc07bbca55abef4ca46fa6dad235d883637541559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release 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