Skip to content

Commit

Permalink
pybind11: Update bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Demel <[email protected]>
  • Loading branch information
jdemel committed May 3, 2022
1 parent c2e66bf commit 7573c04
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 19 deletions.
7 changes: 5 additions & 2 deletions python/bindings/docstrings/frame_gate_pydoc_template.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -18,4 +18,7 @@
static const char* __doc_gr_xfdm_sync_frame_gate = R"doc()doc";


static const char* __doc_gr_xfdm_sync_frame_gate = R"doc()doc";
static const char* __doc_gr_xfdm_sync_frame_gate_frame_gate = R"doc()doc";


static const char* __doc_gr_xfdm_sync_frame_gate_make = R"doc()doc";
5 changes: 4 additions & 1 deletion python/bindings/docstrings/sc_delay_corr_pydoc_template.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -18,4 +18,7 @@
static const char* __doc_gr_xfdm_sync_sc_delay_corr = R"doc()doc";


static const char* __doc_gr_xfdm_sync_sc_delay_corr_sc_delay_corr = R"doc()doc";


static const char* __doc_gr_xfdm_sync_sc_delay_corr_make = R"doc()doc";
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -18,4 +18,7 @@
static const char* __doc_gr_xfdm_sync_sync_tag_align_cc = R"doc()doc";


static const char* __doc_gr_xfdm_sync_sync_tag_align_cc_sync_tag_align_cc = R"doc()doc";


static const char* __doc_gr_xfdm_sync_sync_tag_align_cc_make = R"doc()doc";
13 changes: 7 additions & 6 deletions python/bindings/frame_gate_python.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -25,24 +25,25 @@ namespace py = pybind11;

#include <xfdm_sync/frame_gate.h>
// pydoc.h is automatically generated in the build directory
// #include <frame_gate_pydoc.h>
#include <frame_gate_pydoc.h>

void bind_frame_gate(py::module& m)
{

using frame_gate = gr::xfdm_sync::frame_gate;
using frame_gate = ::gr::xfdm_sync::frame_gate;


py::class_<frame_gate, gr::block, gr::basic_block, std::shared_ptr<frame_gate>>(
m, "frame_gate")
m, "frame_gate", D(frame_gate))

.def(py::init(&frame_gate::make),
py::arg("len_prologue"),
py::arg("len_epilogue"),
py::arg("len_symbol"),
py::arg("symbols_per_frame_min"),
py::arg("symbols_per_frame_min"),
py::arg("do_compensate"))
py::arg("symbols_per_frame_max"),
py::arg("do_compensate"),
D(frame_gate, make))


;
Expand Down
6 changes: 3 additions & 3 deletions python/bindings/sc_delay_corr_python.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(sc_delay_corr.h) */
/* BINDTOOL_HEADER_FILE_HASH(74a914e1f4822839159a6a7eef2729b2) */
/* BINDTOOL_HEADER_FILE_HASH(39887eceb8b6586eb2aabc3c4d9d5f58) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand All @@ -30,7 +30,7 @@ namespace py = pybind11;
void bind_sc_delay_corr(py::module& m)
{

using sc_delay_corr = gr::xfdm_sync::sc_delay_corr;
using sc_delay_corr = ::gr::xfdm_sync::sc_delay_corr;


py::class_<sc_delay_corr,
Expand Down
2 changes: 1 addition & 1 deletion python/bindings/sc_tagger_python.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(sc_tagger.h) */
/* BINDTOOL_HEADER_FILE_HASH(8b59d50cd68de753d4a9c0cb18c74260) */
/* BINDTOOL_HEADER_FILE_HASH(33cc3222d9cb3465ebb74b1654a69d3f) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
8 changes: 4 additions & 4 deletions python/bindings/sync_tag_align_cc_python.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Free Software Foundation, Inc.
* Copyright 2022 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
Expand All @@ -13,8 +13,8 @@
/* If manual edits are made, the following tags should be modified accordingly. */
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(sync_tag_align_cc.h) */
/* BINDTOOL_HEADER_FILE_HASH(4947bf825712e40f5543404ebbecc0b5) */
/* BINDTOOL_HEADER_FILE(sync_tag_align_cc.h) */
/* BINDTOOL_HEADER_FILE_HASH(1f9f86e3e0d858f5dbffbc0996874d65) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand All @@ -30,7 +30,7 @@ namespace py = pybind11;
void bind_sync_tag_align_cc(py::module& m)
{

using sync_tag_align_cc = gr::xfdm_sync::sync_tag_align_cc;
using sync_tag_align_cc = ::gr::xfdm_sync::sync_tag_align_cc;


py::class_<sync_tag_align_cc,
Expand Down
2 changes: 1 addition & 1 deletion python/bindings/xcorr_tagger_python.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(xcorr_tagger.h) */
/* BINDTOOL_HEADER_FILE_HASH(fe52becaefbb36c0d27341d773ee4275) */
/* BINDTOOL_HEADER_FILE_HASH(886f9efa4780318caf002f338e466487) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down

0 comments on commit 7573c04

Please sign in to comment.