DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::rawdatautils::unpack::python Namespace Reference

Functions

void register_unpack (py::module &)

Function Documentation

◆ register_unpack()

void dunedaq::rawdatautils::unpack::python::register_unpack ( py::module & m)
extern

Definition at line 97 of file unpack.cpp.

97 {
98
99 m.def("print_hex_fragment", &print_hex_fragment);
100
101 py::module_ wibeth_module = m.def_submodule("wibeth");
102 wibeth_module.def("get_n_frames", &wibeth::get_n_frames);
103 wibeth_module.def("np_array_adc", &wibeth::np_array_adc);
104 wibeth_module.def("np_array_timestamp", &wibeth::np_array_timestamp);
105 wibeth_module.def("np_array_adc_data", &wibeth::np_array_adc_data);
106 wibeth_module.def("np_array_timestamp_data", &wibeth::np_array_timestamp_data);
107
108 py::module_ daphne_module = m.def_submodule("daphne");
109 daphne_module.def("get_n_frames", &daphne::get_n_frames);
110 daphne_module.def("np_array_adc", &daphne::np_array_adc);
111 daphne_module.def("np_array_timestamp", &daphne::np_array_timestamp);
112 daphne_module.def("np_array_adc_data", &daphne::np_array_adc_data);
113 daphne_module.def("np_array_timestamp_data", &daphne::np_array_timestamp_data);
114 daphne_module.def("np_array_channels_data", &daphne::np_array_channels_data);
115 daphne_module.def("np_array_channels", &daphne::np_array_channels);
116
117 daphne_module.def("get_n_frames_stream", &daphne::get_n_frames_stream);
118 daphne_module.def("np_array_adc_stream", &daphne::np_array_adc_stream);
119 daphne_module.def("np_array_timestamp_stream", &daphne::np_array_timestamp_stream);
120 daphne_module.def("np_array_adc_stream_data", &daphne::np_array_adc_stream_data);
121 daphne_module.def("np_array_timestamp_stream_data", &daphne::np_array_timestamp_stream_data);
122 daphne_module.def("np_array_channels_stream_data", &daphne::np_array_channels_stream_data);
123 daphne_module.def("np_array_channels_stream", &daphne::np_array_channels_stream);
124
125 py::module_ daphneeth_module = m.def_submodule("daphneeth");
126 daphneeth_module.def("get_n_frames", &daphneeth::get_n_frames);
127 daphneeth_module.def("np_array_adc", &daphneeth::np_array_adc);
128 daphneeth_module.def("np_array_timestamp", &daphneeth::np_array_timestamp);
129 daphneeth_module.def("np_array_adc_data", &daphneeth::np_array_adc_data);
130 daphneeth_module.def("np_array_timestamp_data", &daphneeth::np_array_timestamp_data);
131 daphneeth_module.def("np_array_channels_data", &daphneeth::np_array_channels_data);
132 daphneeth_module.def("np_array_channels", &daphneeth::np_array_channels);
133
134 daphneeth_module.def("get_n_frames_stream", &daphneeth::get_n_frames_stream);
135 daphneeth_module.def("np_array_adc_stream", &daphneeth::np_array_adc_stream);
136 daphneeth_module.def("np_array_timestamp_stream", &daphneeth::np_array_timestamp_stream);
137 daphneeth_module.def("np_array_adc_stream_data", &daphneeth::np_array_adc_stream_data);
138 daphneeth_module.def("np_array_timestamp_stream_data", &daphneeth::np_array_timestamp_stream_data);
139 daphneeth_module.def("np_array_channels_stream_data", &daphneeth::np_array_channels_stream_data);
140 daphneeth_module.def("np_array_channels_stream", &daphneeth::np_array_channels_stream);
141
142 py::module_ tde_module = m.def_submodule("tde");
143 tde_module.def("get_n_frames", &tde::get_n_frames);
144 tde_module.def("np_array_adc", &tde::np_array_adc);
145 tde_module.def("np_array_timestamp", &tde::np_array_timestamp);
146 tde_module.def("np_array_adc_data", &tde::np_array_adc_data);
147 tde_module.def("np_array_timestamp_data", &tde::np_array_timestamp_data);
148
149}
py::array_t< uint16_t > np_array_adc_stream(daqdataformats::Fragment &frag)
Unpacks a Fragment containing DAPHNEStreamFrames into a numpy array with the ADC values and dimensi...
py::array_t< uint8_t > np_array_channels_stream(daqdataformats::Fragment &frag)
Unpacks channel numbers for Fragment that contains DAPHNEStreamFrames into a numpy array with dimensi...
py::array_t< uint64_t > np_array_timestamp_stream_data(void *data, int nframes)
Unpacks data containing DAPHNEStreamFrames into a numpy array with the timestamps with dimension (n...
py::array_t< uint16_t > np_array_adc_stream_data(void *data, int nframes)
Unpacks data containing DAPHNEStreamFrames into a numpy array with the ADC values and dimension (nu...
py::array_t< uint64_t > np_array_timestamp_stream(daqdataformats::Fragment &frag)
Unpacks the timestamps in a Fragment containing DAPHNEStreamFrames into a numpy array with dimensio...
uint32_t get_n_frames(daqdataformats::Fragment const &frag)
Gets number of DAPHNEFrames in a fragment.
py::array_t< uint8_t > np_array_channels_data(void *data, int nframes)
Unpacks channel numbers for DAPHNEFrames into a numpy array with dimensions (nframes).
uint32_t get_n_frames_stream(daqdataformats::Fragment const &frag)
Gets number of DAPHNEStreamFrames in a fragment.
py::array_t< uint8_t > np_array_channels_stream_data(void *data, int nframes)
Unpacks channel numbers for DAPHNEStreamFrames into a numpy array with dimensions (nframes,...
py::array_t< uint8_t > np_array_channels(daqdataformats::Fragment &frag)
Unpacks channel numbers for Fragment that contains DAPHNEFrames into a numpy array with dimensions.
py::array_t< uint64_t > np_array_timestamp_data(void *data, int nframes)
Unpacks data containing DAPHNEFrames into a numpy array with the timestamps with dimension (number of...
py::array_t< uint64_t > np_array_timestamp(daqdataformats::Fragment &frag)
Unpacks the timestamps in a Fragment containing WIBFrames into a numpy array with dimension (number o...
py::array_t< uint16_t > np_array_adc(daqdataformats::Fragment &frag)
Unpacks a Fragment containing DAPHNEFrames into a numpy array with the ADC values and dimension (numb...
py::array_t< uint16_t > np_array_adc_data(void *data, int nframes)
Unpacks data containing DAPHNEFrames into a numpy array with the ADC values and dimension (number of ...
py::array_t< uint16_t > np_array_adc_stream(daqdataformats::Fragment &frag)
Unpacks a Fragment containing DAPHNEStreamFrames into a numpy array with the ADC values and dimensi...
uint32_t get_n_frames(daqdataformats::Fragment const &frag)
Gets number of DAPHNEFrames in a fragment.
py::array_t< uint64_t > np_array_timestamp(daqdataformats::Fragment &frag)
Unpacks the timestamps in a Fragment containing WIBFrames into a numpy array with dimension (number o...
py::array_t< uint8_t > np_array_channels_data(void *data, int nframes)
Unpacks channel numbers for DAPHNEFrames into a numpy array with dimensions (nframes).
py::array_t< uint8_t > np_array_channels(daqdataformats::Fragment &frag)
Unpacks channel numbers for Fragment that contains DAPHNEFrames into a numpy array with dimensions.
uint32_t get_n_frames_stream(daqdataformats::Fragment const &frag)
Gets number of DAPHNEStreamFrames in a fragment.
py::array_t< uint64_t > np_array_timestamp_data(void *data, int nframes)
Unpacks data containing DAPHNEFrames into a numpy array with the timestamps with dimension (number of...
py::array_t< uint16_t > np_array_adc_stream_data(void *data, int nframes)
Unpacks data containing DAPHNEStreamFrames into a numpy array with the ADC values and dimension (nu...
py::array_t< uint8_t > np_array_channels_stream(daqdataformats::Fragment &frag)
Unpacks channel numbers for Fragment that contains DAPHNEStreamFrames into a numpy array with dimensi...
py::array_t< uint16_t > np_array_adc_data(void *data, int nframes)
Unpacks data containing DAPHNEFrames into a numpy array with the ADC values and dimension (number of ...
py::array_t< uint16_t > np_array_adc(daqdataformats::Fragment &frag)
Unpacks a Fragment containing DAPHNEFrames into a numpy array with the ADC values and dimension (numb...
py::array_t< uint8_t > np_array_channels_stream_data(void *data, int nframes)
Unpacks channel numbers for DAPHNEEthStreamFrames into a numpy array with dimensions (nframes,...
py::array_t< uint64_t > np_array_timestamp_stream_data(void *data, int nframes)
Unpacks data containing DAPHNEStreamFrames into a numpy array with the timestamps with dimension (n...
py::array_t< uint64_t > np_array_timestamp_stream(daqdataformats::Fragment &frag)
Unpacks the timestamps in a Fragment containing DAPHNEStreamFrames into a numpy array with dimensio...
py::array_t< uint16_t > np_array_adc(daqdataformats::Fragment const &frag)
Unpacks a Fragment containing TDEEthFrames into a numpy array with the ADC values and dimension (numb...
py::array_t< long double > np_array_timestamp(daqdataformats::Fragment const &frag)
Unpacks the timestamps in a Fragment containing TDEEthFrames into a numpy array with dimension (numbe...
py::array_t< long double > np_array_timestamp_data(void *data, uint32_t n_frames)
Unpacks data containing TDEEthFrames into a numpy array with the timestamps with dimension (number of...
uint32_t get_n_frames(daqdataformats::Fragment const &frag)
Gets number of TDEEthFrames in a fragment.
py::array_t< uint16_t > np_array_adc_data(void *data, uint32_t n_frames)
Unpacks data containing TDEEthFrames into a numpy array with the ADC values and dimension (number of ...
py::array_t< uint64_t > np_array_timestamp(daqdataformats::Fragment const &frag)
Unpacks the timestamps in a Fragment containing WIBFrames into a numpy array with dimension (number o...
py::array_t< uint16_t > np_array_adc(daqdataformats::Fragment const &frag)
Unpacks a Fragment containing WIBEthFrames into a numpy array with the ADC values and dimension (numb...
uint32_t get_n_frames(daqdataformats::Fragment const &frag)
Gets number of WIBEthFrames in a fragment.
py::array_t< uint16_t > np_array_adc_data(void *data, uint32_t n_frames)
Unpacks data containing WIBEthFrames into a numpy array with the ADC values and dimension (number of ...
py::array_t< uint64_t > np_array_timestamp_data(void *data, uint32_t n_frames)
Unpacks data containing WIBEthFrames into a numpy array with the timestamps with dimension (number of...
void print_hex_fragment(daqdataformats::Fragment const &frag)
Definition unpack.cpp:27