Skip to main content

ESRF ID02 XPCSUtilities

Project description

Display XPCS result files from ESRF ID02 beamline, perform basic operations on results, basic fitting tools.

XPCSUtilities logo

XPCSUtilities logo

Installation

System requirements

XPCSUtilities works only with python version >= 3.6. Pip will take care of all dependencies. Dependency list can be showed in setup.py file.

It is strongly recommended to install XPCSUtilities in a dedicated virtual environment (virtualenv) to prevent any library version mismatch issue.

Stable version:

pip install xpcsutilities

Development version:

pip install https://gitlab.esrf.fr/id02/xpcsutilities/-/archive/main/xpcsutilities-main.zip

python package

This package can be used in your own analysis script to read data directly from the hdf5/NxXPCS format.

from xpcsutilities.tools.result_file import XPCSResultFile

with XPCSResultFile('my_filename.h5') as fd: # Always use into a with statement!

    print(fd.analysis_keys)

    lag, cf, std = fd.get_correlations('full') # Use here the right analysis key

    cf, lag, age = fd.get_ttcf('full', 3) # Return the TTCF of ROI#3 in the 'full' analysis

GUI

To launch the program:

XPCSUtilities

If installed in an virtual environement, load the environement first.

On the left panel, you’ll find the files of current working folder. You can select any files that you want to display on the right panel. Current working folder is set by the “Set working folder” button. Files are filtered according to the wildcard filter below the button. Multiple filters can be set by using a comma-separated list if wildcards. New files are automatically displayed on the list.

The plot button below display the selected file(s) in current tab.

SAXS 1D

This tab display the radial average of the time averaged 2D pattern. This graphs also shows the correlation ranges.

SAXS 2D

This tab display the time averaged 2D pattern. Mask and q-mask can be displayed as overlay.

  • Corrected: raw 2D pattern corrected by flatfield file

  • Raw: Time average of all 2D patterns recorded

  • Averaged: 2D pattern reconstructed from 1D curve

Correlations

This tab display the correlation functions

TTCF

This tab display the Two Time Correlation Functions

Fit

This tab provide basic fitting tools. Several models can be used togethers to fit the data.

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

xpcsutilities-1.0.3.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xpcsutilities-1.0.3-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file xpcsutilities-1.0.3.tar.gz.

File metadata

  • Download URL: xpcsutilities-1.0.3.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xpcsutilities-1.0.3.tar.gz
Algorithm Hash digest
SHA256 19a48e2bf59617463f3ca0dc24faa9d775f17807485b9f72a01207fc91b09a9c
MD5 dfc768440aa55d4f2723f0b40b4a3622
BLAKE2b-256 809fec55c4c4638a248b0e3ff9add0f08db2bcfff658d83a7eb40e185191a02e

See more details on using hashes here.

File details

Details for the file xpcsutilities-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: xpcsutilities-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xpcsutilities-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f536406d2c80fb2247dbcbec942455ec0d35af93804321d524cca4762f61dd68
MD5 66eebc147b0094b137082ba0578e7049
BLAKE2b-256 26452170b74ab2543e3feeedc1cb4c288471d94b3f61592c4bc6cc7aab47d7c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page