Skip to content

Add python-bindings to labRemote

Giordon Holtsberg Stark requested to merge scipp/labRemote:add/pybind11 into devel

This is demonstrating how (mostly) straightforward it would be to add python-bindings for labRemote in general. Assuming the interface doesn't change much, there's not a lot of maintenance effort to make this happen.

From the build directory, this works:

[root@8f0855481f3f build]# PYTHONPATH=lib/:$PYTHONPATH python3
Python 3.6.8 (default, Aug  7 2019, 17:28:10) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import labRemote
>>>

Supported:

  • libPS
  • libCom
  • libEquipConf

This requires !83 (merged) to be merged in.

Example implementation of https://gitlab.cern.ch/berkeleylab/labRemote/-/blob/master/src/examples/control_powersupply_example.cpp in python3 included.

Example implementation of https://gitlab.cern.ch/berkeleylab/labRemote/-/blob/master/src/tools/powersupply.cpp in python3 included.

Edited by Giordon Holtsberg Stark

Merge request reports