A python-based interactive visualization tool to view XPCS dataset.
To cite pyXpcsViewer:
Chu et al., "pyXPCSviewer: an open-source interactive tool for X-ray photon correlation spectroscopy visualization and analysis", Journal of Synchrotron Radiation, (2022) 29, 1122–1129
Only the APS-8IDI's XPCS data format is supported, for both multi-tau and two-time correlation. The nexus file format for XPCS measurement, which is still under discussion, is not supported yet.
It's highly recommended to setup a new virtual environment to isolate pyXPCSViewer, so it doesn't mess up the dependencies of your existing applications.
-
Install conda following the instructions at link.
-
It's highly recommended to setup a new virtual environment to isolate pyXPCSViewer, so it doesn't mess up the dependencies of your existing applications. Create a brand-new environment with conda
conda create -n your_env_name python==3.9.7
Replace your_env_name with your choice of environment name.
-
Activate the new environment for your pyXPCSViewer
conda activate your_env_name
-
Install pyXPCSViewer
pip install xpcs-viewer
Please note, running conda and pip commands together is generally not recommended. pyXPCSViewer will only use pip or conda once its compatibility issues are resolved.
-
Launch pyXPCSViewer
-
Activate your environment described in step 2 if you haven’t.
-
run
run_viewer path_to_hdf_directory # run the viewer from the hdf directory, or run_viewer # run in the current directory
-
On MacOS and Linux, you can create an alias in .bashrc (or .zshrc if you're using zsh) like
alias your_shortcut_name='conda activate your_env_name; run_viewer $@; conda deactivate'
then source your rc file (
source .bashrc
) and you can runyour_shortcut_name
to launch pyXPCSViewer directly. -
-
To upgrade:
- Activate your environment described in step 2 if you haven’t.
- run
pip install -U xpcs-viewer
-
To uninstall:
- Activate your environment described in step 2 if you haven’t.
- run
pip uninstall xpcs-viewer
- If you want to remove the environment all together, first deactivate the environment with
conda deactivate
, if you're in the pyXPCSViewer environment, then run
conda remove -n your_env_name --all
-
The integrated scattering pattern over the whole time series.
-
The sample's stability against X-ray beam damage. The time series is divided into 10 sections. The SAXS-1D curve is plotted for each section.
-
g2 plot for multitau analysis. User can fit the time scale using the single exponential function, with the option to specify the fitting range and fitting flags (fix or fit).
-
Diffusion analysis. g2 fitting in the previous panel is required to plot
$\tau \mbox{vs.} q$ . -
Twotime correlation. User can select two q indexes either on the qmap or on the SAXS2D image.
-
Experiment condition viewer. It reads the file structure and string entries of the HDF file selected.