A comprehensive toolbox for grazing-incidence diffraction
Project description
mlgidBASE
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:
- mlgidDETECT — for peak detection
- pygidFIT — for two-dimensional peak fitting
- mlgidMATCH — for matching experimental peaks to known structures
Key Features
-
Initialization
Can be created from apygid.Conversionobject or loaded directly from a NeXus file. -
Methods
Provides functions for: -
Visualization
Supports visualization at all stages of the analysis pipeline. -
Peak Adjustment
Includes functions to add or delete peaks, either interactively or programmatically. -
Data Access
Enables retrieving analysis results from the NeXus file for further processing.
Installation
Install using pip
pip install pygid
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 .
Required Python version: 3.12
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlgidbase-0.0.1.tar.gz.
File metadata
- Download URL: mlgidbase-0.0.1.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad0b2dded44477056dc34e98f50d807738b4c8bec53f597a2bbf92023053050
|
|
| MD5 |
0aed8f743a45364fbcd327362b1cffc7
|
|
| BLAKE2b-256 |
fddb2f1148cf814a2aa25a9cb930fe2e4abbe302cdeae8d3518acb8fe86c4a74
|
File details
Details for the file mlgidbase-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mlgidbase-0.0.1-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cf407e22ed35f3f55aa381140697d361a85c304b7a065156ce127ff07d3c826
|
|
| MD5 |
09a46d67c7cd0ad3ce642f07afb80c1d
|
|
| BLAKE2b-256 |
f157ffe2f081a7d58303296c0906503b9792bc8536dc721b9dfa31f8f12097e0
|