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/.h5files - 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:
- Create and activate a conda environment named
dioptas.
conda create -n dioptas python=3.10 -y
conda activate dioptas
- Install Dioptas first inside that environment.
pip install dioptas
- 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
- Set Watch Directory or switch to Batch Mode and select files manually.
- Set Output Directory.
- Select the Calibration File (
.poni). - Optionally select a Mask File.
- Configure integration points and azimuth bins.
- Choose the export options you want.
- Click Start Watching for automatic mode or Process Selected Files for manual batch mode.
- 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
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
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 dioptas_batch_gui-0.0.7.tar.gz.
File metadata
- Download URL: dioptas_batch_gui-0.0.7.tar.gz
- Upload date:
- Size: 768.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03936573fc5f1b002cc0f4b935d6e216b4fd95e0f3a7622641df248fc0844a6d
|
|
| MD5 |
645f7fce3829f9bb6b52468290430fc7
|
|
| BLAKE2b-256 |
0a13e942165d0d0944c8dfb8ca618a424d73b8165c3655f0af89e70aacf45499
|
File details
Details for the file dioptas_batch_gui-0.0.7-py3-none-any.whl.
File metadata
- Download URL: dioptas_batch_gui-0.0.7-py3-none-any.whl
- Upload date:
- Size: 765.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa9c8999507fdf33fb5d318c713bbf31e28de712de8ebcdb62abf85cd4594a71
|
|
| MD5 |
eeaba5702dd792d42c00a7fc519d3713
|
|
| BLAKE2b-256 |
f628a49f948ee48e30f18a4d1b95ec565ecc75612a395b109587263c18a97670
|