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

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.11
File Size Uploaded Provenance Actions
mlgidbase-0.1.11.tar.gz 51.8 kB Without provenance Details for mlgidbase-0.1.11.tar.gz

Built distribution (wheel)

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

Total release size: 110.4 kB

Release files / mlgidbase-0.1.11.tar.gz

Download URL mlgidbase-0.1.11.tar.gz
Size 51.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee504ee1d18efdf46308d422b6b9217830c688cef88f363fe2dddbf972810ca
BLAKE2b-256 checksum
How to use checksums
0f31679a625860a0127f166f720f1c61b77994d852bb79701849a57dab261a3d
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.11-py3-none-any.whl

Download URL mlgidbase-0.1.11-py3-none-any.whl
Size 58.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2837ff123522fd69eaacd988f16c243d0223f240875565d3fe1444f997454b4
BLAKE2b-256 checksum
How to use checksums
331d54149dbe0c856e3b29dac5e391faa20428072efd851a4af553e1c2a4f7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for mlgidbase 0.1.11

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