Line data Source code
1 : /**
2 : * @file file_conversion.cpp Python bindings for file conversions between formats
3 : *
4 : * This is part of the DUNE DAQ Software Suite, copyright 2020.
5 : * Licensing/copyright details are in the COPYING file that you should have
6 : * received with this code.
7 : */
8 :
9 : #include "rawdatautils/WIBtoWIB2.hpp"
10 : #include "rawdatautils/WIBtoWIBEth.hpp"
11 : #include "rawdatautils/WIBtoTDE.hpp"
12 :
13 :
14 : #include <pybind11/numpy.h>
15 : #include <pybind11/pybind11.h>
16 : #include <pybind11/stl.h>
17 :
18 : namespace py = pybind11;
19 :
20 : namespace dunedaq {
21 : namespace rawdatautils {
22 :
23 : namespace fc {
24 : namespace python {
25 :
26 : void
27 0 : register_file_conversion(py::module& m)
28 : {
29 0 : m.def("wib_hdf5_to_wib2_binary", &wib_hdf5_to_wib2_binary);
30 0 : m.def("wib_binary_to_wib2_binary", &wib_binary_to_wib2_binary);
31 0 : m.def("wib_hdf5_to_wibeth_binary", &wib_hdf5_to_wibeth_binary);
32 0 : m.def("wib_binary_to_wibeth_binary", &wib_binary_to_wibeth_binary);
33 0 : m.def("wib_hdf5_to_tde_binary", &wib_hdf5_to_tde_binary);
34 0 : m.def("wib_binary_to_tde_binary", &wib_binary_to_tde_binary);
35 0 : }
36 :
37 : } // namespace python
38 : } // namespace file_conversion
39 : } // namespace rawdatautils
40 : } // namespace dunedaq
|