A Python based XAS analysis workflow that also correlates process data streams to the XAS spectra.
-
Download and install the anaconda python distribution:
https://www.anaconda.com/products/distribution
This is a modified set of installation notes from the xraylarch source (https://xraypy.github.io/xraylarch/) [updated 1/23/2024]:
-
Activate your conda environment (called base by default) and update it:
conda activate conda update -y conda python pip
-
Create a dedicated python 3.10.13 environment (name = catXAS) to install Larch into and activate it:
conda create -y --name catXAS python=3.10.13 conda activate catXAS
-
Install the main dependencies:
conda install -y numpy scipy matplotlib scikit-learn pandas<2.0.0 pip install glob2 ipywidgets wxpython pymatgen pip install h5py==3.9.0 conda install -y -c conda-forge openbabel tomopy pip install epicsapps conda install conda-forge::pycifrw
-
install Larch (latest release):
pip install xraylarch
-
open Anaconda
-
In the “Home” tab use dropdown tab next to “Application on” to select “catXAS” There will be a slight pause while the software switches to the new environment
-
Scroll down in the main window and select “Install” for the Jupyter Notebook application There will be a slight pause while the software installs Jupyter Notebook
-
Other dependencies may be missing in the environment that may need to be added through pip or conda.