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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlgidbase-0.1.5.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlgidbase-0.1.5-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file mlgidbase-0.1.5.tar.gz.

File metadata

  • Download URL: mlgidbase-0.1.5.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mlgidbase-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cf3a429429e33ebd3e31d6b2469bb2cef83df19aeb970ce330c2078f1c6f96fb
MD5 9dd8b2b87b6a05f9f3acbb2ce3dc886a
BLAKE2b-256 73e73468a96df3d48bb147571c58859e0d891853d080b42a54e9af9613e265e0

See more details on using hashes here.

File details

Details for the file mlgidbase-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mlgidbase-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mlgidbase-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 59e32c4e2f5d7f2c957a5e954af1f7de8cfdd7012ced1bbbdc35cd9389f70331
MD5 65c77b31ae6bc1d18cdde5a82e0c91aa
BLAKE2b-256 e1a4e6668ee09ceb9160e34759896f76fbb82c85f187b086d1df5597c4ce5d5a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page