Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pylatus scripting API

Pylatus API Objects

Technical details

Pylatus is dynamically linked against a local version of Python, but only Python>=3.6 is supported. If you do not want to use any Python scripting in Pylatus, it should be compiled with -DNO_PYTHON=1.

Thus, Python in Pylatus is the same interpreter which is installed in your system, and you can import any module which is installed for you system interpreter, i.e. this would work

import numpy as np

if you have numpy installed. Pylatus extends the system modules with a few objects specific for a typical diffraction experiment.

It is important to note that the Pylatus do not run the script immediately but creates a sequence of actions which can be inspected by user and run after.