pyXPCSViewer: A python-based interactive tool to visualize and model XPCS dataset
Project description
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.
Supported Format
This tools supports the customized nexus fileformat developed at APS-8IDI’s XPCS data format for both multi-tau and two-time correlation.
Install and Uninstall
Updated 03/11/2025
It is highly recommended to set up a new virtual environment to isolate pyXPCSViewer, so it does not interfere with dependencies of your existing applications.
Install conda following the instructions at link.
Create a brand-new environment with conda:
conda create -n your_env_name python==3.10.16Replace your_env_name with your preferred environment name.
Activate the new environment:
conda activate your_env_nameInstall pyXPCSViewer:
pip install xpcs-viewerNote: Running conda and pip commands together is generally not recommended. pyXPCSViewer will only use pip or conda once compatibility issues are resolved.
Launch pyXPCSViewer:
Activate your environment if you have not already.
Run:
pyxpcsviewer path_to_hdf_directory # Run the viewer from the hdf directory pyxpcsviewer # Run in the current directory
run_viewer, an alias to pyxpcsviewer, can also be used to luanch the viewer.
To upgrade:
Activate your environment if you have not already.
Run:
pip install -U xpcs-viewer
To uninstall:
Activate your environment if you have not already.
Run:
pip uninstall xpcs-viewerIf you want to remove the environment altogether, first deactivate it:
conda deactivateThen remove it:
conda remove -n your_env_name --all
Gallery
The integrated scattering pattern over the whole time series.
The reduced one-dimensional small-angle scattering data.
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.
Intensity fluctuation vs. Time.
Average Tool box.
g2 plot for multitau analysis. Users can fit the time scale using a single exponential function, with options 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\).
Two-time correlation. Users can select two q indexes either on the q-map or on the SAXS-2D image.
Experiment condition viewer. It reads the file structure and string entries of the selected HDF file.
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
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 xpcs_viewer-1.0.6.tar.gz.
File metadata
- Download URL: xpcs_viewer-1.0.6.tar.gz
- Upload date:
- Size: 10.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2b0a14cc4043a55e1a704e812c61bcf864d10dc6312cc4bb001f1bdf095e025
|
|
| MD5 |
a17a6c6560e882394b3ec9870b3cee63
|
|
| BLAKE2b-256 |
58f933ac361125c28a799de06be41c095df2c5318aacfaeda1a122cb3f5206bd
|
Provenance
The following attestation bundles were made for xpcs_viewer-1.0.6.tar.gz:
Publisher:
publish-pypi.yml on AdvancedPhotonSource/pyXpcsViewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpcs_viewer-1.0.6.tar.gz -
Subject digest:
a2b0a14cc4043a55e1a704e812c61bcf864d10dc6312cc4bb001f1bdf095e025 - Sigstore transparency entry: 855023600
- Sigstore integration time:
-
Permalink:
AdvancedPhotonSource/pyXpcsViewer@c75e4c36ab5835ba0e662c76231eec6af55b2a31 -
Branch / Tag:
refs/tags/1.0.6 - Owner: https://github.com/AdvancedPhotonSource
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c75e4c36ab5835ba0e662c76231eec6af55b2a31 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xpcs_viewer-1.0.6-py3-none-any.whl.
File metadata
- Download URL: xpcs_viewer-1.0.6-py3-none-any.whl
- Upload date:
- Size: 109.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04bd13ce03c920ed1edaf07ba3b238caedb1ce81fa57c3c66443b26b8860d969
|
|
| MD5 |
1ea8256eb0c801ce07e309587e643cc7
|
|
| BLAKE2b-256 |
5d0686b9879d31bdead20b61a4a6393e638fc8e220a1028364b0e33686d0f486
|
Provenance
The following attestation bundles were made for xpcs_viewer-1.0.6-py3-none-any.whl:
Publisher:
publish-pypi.yml on AdvancedPhotonSource/pyXpcsViewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpcs_viewer-1.0.6-py3-none-any.whl -
Subject digest:
04bd13ce03c920ed1edaf07ba3b238caedb1ce81fa57c3c66443b26b8860d969 - Sigstore transparency entry: 855023602
- Sigstore integration time:
-
Permalink:
AdvancedPhotonSource/pyXpcsViewer@c75e4c36ab5835ba0e662c76231eec6af55b2a31 -
Branch / Tag:
refs/tags/1.0.6 - Owner: https://github.com/AdvancedPhotonSource
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c75e4c36ab5835ba0e662c76231eec6af55b2a31 -
Trigger Event:
push
-
Statement type: