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.10, for example.

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

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

Note 2: If you previously uninstalled Anaconda (which is not free for institutional use!), 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. Check it in the prompt 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
Alternatively, use this master file for all apps except EosCross:
Package requirements file

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