Qudi
|
With a Qudi extension it is possible to add custom gui, logic and hardware modules as well as interfaces.
A Qudi extension is a python package with gui, logic and hardware subpackages. All modules in those subpackages are combined in qudi's gui, logic and hardware namespaces, respectively.
Example:
Folder structure:
my_qudi_extension
hardware
my_hardware_module.py
After addition of the extension to qudi the module my_hardware_module
will be available in the hardware
namespace, i.e. as hardware.my_hardware_module
. You can import it by
Please note:
__init__.py
files within the qudi extension. This is a requirement posed by the implicit namespaces introduced in python 3.3 which we use for extensions.There are two ways to add an extension to Qudi:
PYTHONPATH
environment variableIn a configuration file an extension can be added by defining its directory to the extensions
key in the global
section.
The path to the extension can be absolute or relative to the location of the configuration file. If the directory cannot be found an error is thrown and it is ignored.
An extension can also be added by defining its path to the PYTHONPATH
environment variable. One way to do this is to start Qudi by PYTHONPATH="path_to_extension_1" python qudi/start.py
The search order is