mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-15 09:01:21 +01:00
add
This commit is contained in:
16
python/src/enums_in.cpp
Normal file
16
python/src/enums_in.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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_readwrite("x", &slsDetectorDefs::xy::x);
|
||||
xy.def_readwrite("y", &slsDetectorDefs::xy::y);
|
||||
|
||||
[[ENUMS]]
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user