Skip to main content

GUI app for automated batch processing of Lambda detector data with Dioptas

Project description

Dioptas Batch Processor GUI

Standalone GUI for automated batch processing of Lambda detector diffraction files using Dioptas.

Features

  • Folder watch mode for automatic processing of incoming .nxs / .h5 files
  • Manual batch mode for selected files
  • CHI export (1D integration)
  • NPY export (2D cake arrays: intensity, two-theta, azimuth)
  • Optional mask support
  • Background processing thread to keep GUI responsive

Project Structure

dioptas_batch_gui/
├── dioptas_batch_gui/
│   ├── __init__.py
│   ├── __main__.py
│   ├── version.py
│   ├── gui.py
│   ├── batch_processor.py
│   └── file_watcher.py
├── check_dependencies.py
├── pyproject.toml
├── requirements.txt
├── LICENSE
├── CHANGELOG.md
├── CONTRIBUTING.md
└── SECURITY.md

Requirements

  • Python 3.10+
  • conda (recommended for environment management)

Installation (Recommended)

Set up in this order:

  1. Create and activate a conda environment named dioptas.
conda create -n dioptas python=3.10 -y
conda activate dioptas
  1. Install Dioptas first inside that environment.
pip install dioptas
  1. Install this package.
pip install dioptas-batch-gui

Update to the latest PyPI release

pip install --upgrade dioptas-batch-gui

Force reinstall from PyPI

pip install --upgrade --force-reinstall dioptas-batch-gui

Verify Dependencies

python check_dependencies.py

Usage

Installed CLI commands (work from any directory once your environment is active in terminal or console):

After:

conda activate dioptas
dbgui

or

dioptas_batch_gui

or

dioptas-batch-gui

For a local checkout, you can also launch the app directly:

python -m dioptas_batch_gui

Basic Workflow

  1. Set Watch Directory or switch to Batch Mode and select files manually.
  2. Set Output Directory.
  3. Select the Calibration File (.poni).
  4. Optionally select a Mask File.
  5. Configure integration points and azimuth bins.
  6. Choose the export options you want.
  7. Click Start Watching for automatic mode or Process Selected Files for manual batch mode.
  8. Click Stop Watching when finished with auto-processing.

Output

For each processed dataset, the app exports:

  • <base_name>.chi
  • <base_name>-param/<base_name>.int.cake.npy
  • <base_name>-param/<base_name>.tth.cake.npy
  • <base_name>-param/<base_name>.azi.cake.npy

For HDF5/NXS files containing multiple snapshot images, outputs use a one-based snapshot suffix before the extension and in the parameter directory name:

  • <base_name>_001.chi
  • <base_name>_001-param/<base_name>_001.int.cake.npy
  • <base_name>_001-param/<base_name>_001.tth.cake.npy
  • <base_name>_001-param/<base_name>_001.azi.cake.npy

Output layout:

output_directory/
├── <base_name>.chi
└── <base_name>-param/
    ├── <base_name>.int.cake.npy
    ├── <base_name>.tth.cake.npy
    ├── <base_name>.azi.cake.npy
    └── <calibration>.poni

License

GPL-3.0-only. See LICENSE.

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

dioptas_batch_gui-0.0.9.tar.gz (768.6 kB view details)

Uploaded Source

Built Distribution

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

dioptas_batch_gui-0.0.9-py3-none-any.whl (766.3 kB view details)

Uploaded Python 3

File details

Details for the file dioptas_batch_gui-0.0.9.tar.gz.

File metadata

  • Download URL: dioptas_batch_gui-0.0.9.tar.gz
  • Upload date:
  • Size: 768.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dioptas_batch_gui-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c5333ca3a04e8ccd839ba4e9c390bf675d7d1b7f9a8464b0310a5703a4685917
MD5 73cb849c4781fb7cea76323f7737d3b2
BLAKE2b-256 cc23046f15f958c4199564c5f49a56730e97aec28c0426b99902728a690df754

See more details on using hashes here.

File details

Details for the file dioptas_batch_gui-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for dioptas_batch_gui-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4d62a7a560d52a73899e6d168a827b05e74e125a970851d86a046b39200b245a
MD5 48c7bc7aeb0d41771af47b10614c910b
BLAKE2b-256 b491633e15340907b59220828174689f7d2ff94a6d252db7eecacacf42313a60

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