Metadata-Version: 2.3
Name: dioptas
Version: 0.7.1
Summary: GUI program for reduction and exploration of 2D X-ray diffraction data
License: GPL-3.0
Author: Clemens Prescher
Author-email: clemens.prescher@gmail.com
Requires-Python: >=3.9,<3.14
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Dist: EXtra-data (>=1.13.0,<2.0.0) ; sys_platform == "linux"
Requires-Dist: PyCifRW (>=5.0.0,<6.0.0)
Requires-Dist: PyQt6 (>=6.8,<7.0)
Requires-Dist: QtPy (>=2.4.3,<3.0.0)
Requires-Dist: h5py (>=3.13.0,<4.0.0)
Requires-Dist: hdf5plugin (>=5.0.0,<6.0.0)
Requires-Dist: lmfit (>=1.3.3,<2.0.0)
Requires-Dist: numexpr (>=2.10.2,<3.0.0)
Requires-Dist: numpy (>=1.24.0,<2.0.0) ; python_version < "3.10"
Requires-Dist: numpy (>=1.26.0,<2.0.0) ; python_version >= "3.10"
Requires-Dist: pandas (>=2.1.1,<3.0.0)
Requires-Dist: psutil (>=5.9.5,<6.0.0)
Requires-Dist: pyfai (==2025.3.0)
Requires-Dist: pyopengl (>=3.1.7,<4.0.0)
Requires-Dist: pyopengl-accelerate (>=3.1.7,<4.0.0)
Requires-Dist: pyqtgraph (>=0.13.7,<0.14.0)
Requires-Dist: pyshortcuts (>=1.8.1,<2.0.0)
Requires-Dist: qt-material (>=2.14,<3.0)
Requires-Dist: scikit-image (>=0.22.0,<0.23.0)
Requires-Dist: scipy (>=1.11.3,<2.0.0) ; python_version >= "3.10"
Requires-Dist: scipy (>=1.9.3,<2.0.0) ; python_version < "3.10"
Requires-Dist: sharedmem (>=0.3.8,<0.4.0)
Requires-Dist: watchdog (>=6.0.0,<7.0.0)
Requires-Dist: xypattern (>=1.2.2,<2.0.0)
Description-Content-Type: text/markdown

# 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 folder will contain an app folder which needs to be right-clicked and selected "Open" to start the program.
Accepting the security prompts is required.

### Python Package

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

```bash
pip install dioptas
```

and then run Dioptas by typing:

```bash
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.

```bash
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 poetry package manager.
Clone the repository from github and navigate to the repository:

```bash
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:

```bash
git checkout main
```

Install the dependencies by running:

```bash
poetry install
```

This will create a new environment with all the required python packages. The environment can be activated by running:

```bash
poetry shell
```

Afterward the program can be started by running:

```bash
dioptas
```

In order to run the program without activating the poetry shell environment use:

```bash
poetry run dioptas
```

In case you want to run the Dioptas from source without poetry, 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:

```bash
python run.py
```

