File: README.md

package info (click to toggle)
dioptas 0.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 163,396 kB
  • sloc: python: 28,770; makefile: 24; xml: 9; sh: 3
file content (86 lines) | stat: -rw-r--r-- 2,458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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. When used with 32 bit Dioptas occasionally crashes because of limited memory allocation possibilities.

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 can be double-clicked for starting. Please accept the security prompts.

Unfortunately, I am currently unable to create working App for MacOS X. Users of this convoluted operation system need 
to install dioptas using "pip" and then start it from the commandline. (see below)

### Code

In order to make changes to the source code yourself or always get the latest development versions you need to install
the required python packages on your machine.

The easiest way to install the all the dependencies for Dioptas is to use the pip package manager:

```bash
pip install dioptas
```

and then run Dioptas by typing:
```bash
dioptas
```
in the commandline.


Running the Program from source
-------------------------------

The easiest way to create a working environment for Dioptas is to use the poetry package manager. A new environment is 
created by running:

```bash
poetry install
```

This will create a new environment with all the required 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 environment, the program can be started by running:

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