Beamline software tools

Read this before you start

Important notice!
All projects have been migrated to DESY GitLab. Please visit the project page HERE for downloads and bug reports (issue tracker). Thank you for your attention!

Instructions for setting up a Python environment

It helps to set up a python environment with the required packages. One suggestion is to use the free conda manager Miniforge.

1. Create a clean environment in Miniforge. To do this, after the installation, start the Miniforge prompt and type: conda create -n myenvironment python==3.xx. Use the flag python=3.11.14, for example.

Note 1: you can check the actively supported python versions on this website: Python versions. Currently, the recommended version is 3.11.14 (the last bug fix), supported until end of 2027.

2. To change to the newly created environment type: activate myenvironment.

Note 2: You should uninstall Anaconda if you have it, which is not free for institutional use! Then look for the file '.condarc' in your home directory in Windows and edit it prior to running Miniforge, i.e. in the file change 'default' to 'conda-forge' as your only channel. After installing miniforge, run the Miniforge prompt and check by typing: conda config --show channels.

3. For the freshly created environment, open a terminal and install the dependencies using the requirements file included in the app:
pip install -r requirements.txt

Note 3: If you want to regenerate the provided 'requirements.txt' file , install:
pip install pipreqs
...and run:
pipreqs . --force

4. You can now start the app in the script directory:
python 'filename'.py

Note 4: If you want to use the shortcut, please edit the .bat file!



DESY GitLab Projects by R. Farla

GSAS-II GUIDE by R. Farla

Please download my GSAS-II guide for processing and refining P61B ED-XRD data:
Guide v2.0

You may still use this Instrument Parameter File (.instrm) to load the first GSAS data (converted from NXS). However, in the latest versions of GSAS-II, you can simply choose the 'EDX' option and edit the 2theta angle directly in GSAS-II.
Instrument parameter file


Dummy NXS data file for PDIndexer

If you need to check some phases at particular 2theta angles in PDIndexer, you need to first load some ED-XRD data. Here I provide you a dummy NXS file to get started.
download link