mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-27 00:30:03 +02:00
22 lines
662 B
C++
22 lines
662 B
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#include <pybind11/chrono.h>
|
|
#include <pybind11/numpy.h>
|
|
#include <pybind11/operators.h>
|
|
#include <pybind11/pybind11.h>
|
|
#include <pybind11/stl.h>
|
|
|
|
#include "sls/sls_detector_defs.h"
|
|
#include "sls/Pattern.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]]
|
|
}
|