mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 14:38:14 +02:00
19 lines
489 B
C++
19 lines
489 B
C++
#include <pybind11/chrono.h>
|
|
#include <pybind11/operators.h>
|
|
#include <pybind11/pybind11.h>
|
|
#include <pybind11/stl.h>
|
|
|
|
#include "sls_detector_defs.h"
|
|
namespace py = pybind11;
|
|
void init_enums(py::module &m) {
|
|
py::class_<slsDetectorDefs> Defs(m, "slsDetectorDefs");
|
|
py::class_<slsDetectorDefs::xy> xy(m, "xy");
|
|
xy.def(py::init());
|
|
xy.def(py::init<int,int>());
|
|
xy.def_readwrite("x", &slsDetectorDefs::xy::x);
|
|
xy.def_readwrite("y", &slsDetectorDefs::xy::y);
|
|
|
|
[[ENUMS]]
|
|
|
|
}
|