mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
29 lines
612 B
C++
29 lines
612 B
C++
#include <pybind11/chrono.h>
|
|
#include <pybind11/operators.h>
|
|
#include <pybind11/pybind11.h>
|
|
#include <pybind11/stl.h>
|
|
|
|
#include "Detector.h"
|
|
#include "ToString.h"
|
|
#include "network_utils.h"
|
|
#include "sls_detector_defs.h"
|
|
#include "typecaster.h"
|
|
|
|
#include "TimeHelper.h"
|
|
#include <array>
|
|
#include <chrono>
|
|
namespace py = pybind11;
|
|
void init_det(py::module &m) {
|
|
using sls::Detector;
|
|
using sls::Positions;
|
|
using sls::Result;
|
|
using sls::defs;
|
|
using sls::ns;
|
|
|
|
py::class_<Detector> CppDetectorApi(m, "CppDetectorApi");
|
|
CppDetectorApi
|
|
.def(py::init<int>())
|
|
|
|
[[FUNCTIONS]]
|
|
}
|