File: python-interface.rst

package info (click to toggle)
wsclean 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,968 kB
  • sloc: cpp: 85,742; python: 3,526; sh: 245; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 813 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
26
Python interface
================

Radler provides an interface via the :code:`radler` module. In order to build
this module, make sure the cmake configuration option :code:`BUILD_PYTHON_BINDINGS` is turned :code:`ON`.

After successfully compiling and installing the python bindings, you may have to update your :code:`LD_LIBRARY_PATH`
and your :code:`PYTHONPATH` as follows:

::

    export LD_LIBRARY_PATH=<installpath>/lib/:$LD_LIBRARY_PATH
    export PYTHONPATH=<installpath>/lib/python<VERSION_MAJOR>.<VERSION_MINOR>/site-packages:$PYTHONPATH

where :code:`VERSION_MAJOR` and :code:`VERSION_MINOR` depend upon the specific version of python on your system.
The :code:`radler` module can now be imported in python with:

::

    import radler

.. toctree::
   :maxdepth: 1

   python/settings
   python/demo