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.10

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.10
File Size Uploaded
mlgidbase-0.1.10.tar.gz 47.6 kB Details

Built distribution (wheel)

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

Total release size: 101.7 kB

Release files / mlgidbase-0.1.10.tar.gz

Download URL mlgidbase-0.1.10.tar.gz
Size 47.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b333d48abe58190109b38fbc7930c457129a18712f1c8168565b98c804f1312e
BLAKE2b-256 checksum
How to use checksums
84036e423dd3c1125bac049dea1f308c45b9f17404b3754a5b88ff3d7284ecee
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.10-py3-none-any.whl

Download URL mlgidbase-0.1.10-py3-none-any.whl
Size 54.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc7bdb7dab861ed731fda3286f7371a3d2569121c0fd53da7818e586c7ad1f3e
BLAKE2b-256 checksum
How to use checksums
30b3388a31c3fa115134da1d178a260de0e1b1bd28c9aa3978fcf381cf1c1bf1
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.10 This release

2 release files

0.1.8

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