Skip to content

Make Machine class (and maybe others) derivable in python

Created by: gcarleo

To make new Machines easily prototyped in python, it would be really nice to allow for the abstract c++ interface to be overriden by pure python classes.

The way to achieve this with pybind11 is described here and basically requires writing a trampoline class binding the methods of the abstract class... it's a bit ugly, but otherwise straightforward.