MultiModalAnalysis is a package to easily postprocess GIWAXS data.
Project description
Multi-Modal Analysis
This repository contains a Python script designed for the analysis of multimodal in-situ data taken at beamline 12.3.2 of the Advanced Lightsource (ALS). The script performs various data processing tasks including timestamp-adjustment, data selection, peak fitting, and various ways of data visualization. It uses in-situ photoluminescence (PL) and (grazing incidence) wide-angle X-ray scattering (GI-WAXS) data as well as logged process parameters as input. The GI-WAXS data have to be pre-processed, e.g. calibrated and integrated, using XRDSol. MMAnalysis will look for one folder per sample to analyze, which should contain three subfolders: a folder labeled "GIWAXS" containing the scan.dat-output from XRDSol, a folder labeled "PL" containing the individual PL spectra as recorded at the beamline, and a folder labeled "Logfile" containing the file created by the LabView process control software at 12.3.2.
Requirements
Check the file requirements.txt to see which packages are needed. Installing the package using pip
should already take care of all dependencies.
Installation instructions
Create a new virtual environment
Create a new Python environment. (You can also do it in a pre-existing environment, but make sure you don't break something):
conda create -n mmanalysis python=3.11
conda activate mmanalysis
Note that you may need to initialize your shell within conda, e.g., using conda init bash. You will know if the conda environment has been activated when you see that your shell prompt is modified with (mmanalysis
).
After activating your new (or existing) environment, follow the next steps.
Install using pip
You can simply install the latest release of the package and all dependencies using:
pip install mmanalysis
Install directly the source code
Alternatively you can obtain mmanalysis
directly from the repository by following those steps:
Clone the repository in the desired location:
git clone https://github.com/sutterfellalab/MultiModalAnalysis.git
Install the required packages:
cd MultiModalAnalysis
conda install -c conda-forge --file requirements.txt
Install the package with pip:
pip install .
Features
- Logging Data Selection: Automatically suggests start times and plots raw and post-processed log data.
- GIWAXS Data Selection: Automatically finds suggested start times, plots raw and post-processed GIWAXS data, and performs peak fitting. Additionally, it gives an option to extract individual frames for x-y-plots.
- PL Data Selection: Plots raw and post-processed PL data (PL data have the same timestamp as the logging data), optimizes data for plotting, and performs peak fitting. Additionally, it gives an option to extract individual frames for x-y-plots.
- Stacked Plots: Generates stacked plots for combined GIWAXS, PL, and logging data.
- **Output: the script creates a new "output" folder containing all the images displayed during execution as well as all relevant data in .csv files
Contact
Feel free to create Merge Requests and Issues on our GitHub page: https://github.com/sutterfellalab/MultiModalAnalysis.
If you want to contact the authors, please write to T. Kodalle at TimKodalle@lbl.gov.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file mmanalysis-1.0.1.tar.gz
.
File metadata
- Download URL: mmanalysis-1.0.1.tar.gz
- Upload date:
- Size: 744.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
771426366d8f338428128ec583ab832dfeb79f4a2c9d4118f4a54ddb35b9dcee
|
|
MD5 |
57210ed283361a875cdf3098d6234962
|
|
BLAKE2b-256 |
60645f754719f15c5f312af273d876efbeddc13df468c1063cc3177ba5ea6b3a
|
File details
Details for the file mmanalysis-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: mmanalysis-1.0.1-py3-none-any.whl
- Upload date:
- Size: 793.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b09e1fdaf7cdb25f824b96fbe9c67a645bba9eb9d1687d4a9f800d79d0bec1c5
|
|
MD5 |
c4337517cd6ea75209e051f30f51a3f9
|
|
BLAKE2b-256 |
22e29e699ac0289c729446230c74b64d94aaadecb9bfd8e34f4d8d23b6e150b6
|