File: pywrappers.cc

package info (click to toggle)
wsclean 3.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 129,246; python: 22,066; sh: 360; ansic: 230; makefile: 185
file content (25 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: LGPL-3.0-only

#include <pybind11/pybind11.h>

namespace py = pybind11;

void init_settings(py::module&);
void init_work_table(py::module&);
void init_radler(py::module&);
void init_component_list(py::module&);

PYBIND11_MODULE(radler, m) {
  m.doc() = R"pbdoc(
   Python wrappers for the C++-based Radio Astronomical Deconvolution Library
   Radler (https://git.astron.nl/RD/radler).
  )pbdoc";
  // Following can't be ordered alphabetically, since
  // custom types only can be used in the interface after being
  // registered. The Radler constructor, for instance, requires
  // the Settings (and WorkTable) wrappers to be registered.
  init_settings(m);
  init_work_table(m);
  init_radler(m);
  init_component_list(m);
}