Skip to main content

GUI program for reduction and exploration of 2D X-ray diffraction data

Project description

Dioptas

A GUI program for fast analysis of powder X-ray diffraction Images. It provides the capability of calibrating, creating masks, having pattern overlays and showing phase lines.

Maintainer

Clemens Prescher (clemens.prescher@gmail.com)

Requirements

* python 3.9+

It is known to run on Windows, Mac and Linux. For optimal usage on a Windows machine it should be run with 64 bit python.

Installation

Executables

Executable versions for Windows, Mac OsX and Linux (all 64bit) can be downloaded from:

https://github.com/Dioptas/Dioptas/releases

The executable versions are self-contained folders, which do not need any python installation. Under Windows and Linux the program can be started by running the executable (e.g. Dioptas.exe or Dioptas). Under MacOS X the download will contain a .tar.gz archive. Extract it first, then right-click the .app folder and select "Open" to start the program.

If macOS shows a warning that the app "cannot be verified", you need to remove the quarantine attribute by running the following command in the Terminal:

find Dioptas_*.app -exec xattr -c {} \;

Python Package

The easiest way to install the dioptas python package is using pip.

pip install dioptas

and then run Dioptas by typing:

dioptas

in the commandline.

We also maintain a conda-forge version of dioptas. You can add the conda-forge channel to your conda distribution and then install dioptas via conda should be working correctly.

conda config --add channels conda-forge
conda install dioptas

Running the Program from source

In order to run the program from source, the easiest way is to use the uv package manager. Clone the repository from github and navigate to the repository:

git clone https://github.com/Dioptas/Dioptas.git
cd Dioptas

Note: This will clone the develop branch by default, which contains the latest development version. If you want to use the latest stable release instead, switch to the main branch after cloning:

git checkout main

Install uv and the dependencies by running:

python -m pip install uv
uv sync

This will create a new environment with all the required python packages in .venv.

Afterward the program can be started by running:

uv run dioptas

In order to run the program without uv, you need to install the required packages yourself. The packages are listed in the file pyproject.toml. The program can then be started by running:

python run.py

Scripting API

Dioptas can also be used as a Python library for headless integration from scripts and Jupyter notebooks. Set up your experiment in the GUI, save a .dio project file, then use it in code:

from dioptas.pipeline import Pipeline

# Load full setup (calibration, mask, corrections, etc.) from a project file
p = Pipeline.from_project("experiment.dio")

# Override the mask if needed
p.load_mask("new_beamstop.mask")

# Integrate a single image
pattern = p.integrate("sample_001.tiff")
pattern.save("sample_001.xy")

# Batch integrate with a glob pattern
patterns = p.integrate_batch("data/sample_*.tif")

See the scripting API documentation for the full reference.

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-0.8.5.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

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

dioptas-0.8.5-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file dioptas-0.8.5.tar.gz.

File metadata

  • Download URL: dioptas-0.8.5.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dioptas-0.8.5.tar.gz
Algorithm Hash digest
SHA256 acddffa6e6351f25dedb9ab3f936fa8d5a530b9682db02b4c70ad00eef6eec0a
MD5 b2d793962c12abe6622f0314e31d2ee7
BLAKE2b-256 edf73c0c132a437257c465baf5edb32d02dc488e6349a0a242d05e71038c04ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for dioptas-0.8.5.tar.gz:

Publisher: release.yml on Dioptas/Dioptas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dioptas-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: dioptas-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dioptas-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 af1fb6ef6eb385474659322c1502c64f650695b2739a5dd317928446475d0671
MD5 5f84c94699b2f0f19543039e22b9ba4a
BLAKE2b-256 71f5179a99fb65c2b8ad88de58a5faeb0448cb40770df2ee989d24bb1b015839

See more details on using hashes here.

Provenance

The following attestation bundles were made for dioptas-0.8.5-py3-none-any.whl:

Publisher: release.yml on Dioptas/Dioptas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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