summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/gateway.py
Commit message (Collapse)AuthorAgeFilesLines
* runtime: pep8 formattingJosh Morman2021-11-241-33/+36
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-2/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* runtime: add pybind11 bindingsJosh Morman2020-06-041-166/+183
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-5/+10
|\
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-8/+13
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| | * python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-8/+13
| | |
* | | runtime: make py_io_signature iterable, hashableMarcus Müller2018-03-061-1/+10
| | | | | | | | | | | | | | | | | | | | | This allows GRC to iterate the output signatures of epy blocks after switching over to py_io_signature. Fixes #1666.
* | | runtime: py_io_signature method documentationMarcus Müller2018-03-061-17/+23
| | | | | | | | | | | | Only moved code comments to become docstrings.
* | | python gateway: added arg descriptions as docstringsJeff Long2018-02-211-0/+57
| | |
* | | python gateway: use range instead of xrange for Python 3 compatibilityJeff Long2018-02-211-4/+4
| | | | | | | | | | | | | | | Performance testing shows that the difference between range and xrange is negligable here, using Python 2.7.14.
* | | python gateway: use tuples instead of lists where possibleJeff Long2018-02-211-4/+4
| | |
* | | python gateway: permit a variable number of portsJeff Long2018-02-211-26/+63
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++ block in/out ports are described by io_signature, which holds the min number of ports, max number of ports, and a list of type lengths. If len(type lengths) < max number of ports, the last type is assumed to apply to the remaining ports. When a flowgraph is built, a variable number of ports can be connected. Python block ports are specified using a list of numpy types. The number of ports is fixed in the block specification, and the flowgraph must connect exactly that number of ports. This patch changes the Python behavior (while maintaining backward compatibility) to match the C++ behavior. A new py_io_signature class is used to specify port number limits, along with a list of numpy types, like this: in_sig = gr.py_io_signature(2, -1, ['float32', 'float32']) where in_sig is passed to the block super's __init__ as before.
* / Comment typo fixing.luz.paz2018-02-031-2/+2
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* runtime: add accessors for in_sig and out_sig in python blocksSebastian Koslowski2015-11-061-0/+7
|
* runtime: fix default forecast implementation for python blocksSebastian Koslowski2015-07-101-5/+7
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-10/+10
|
* runtime: migrate remaining gnuradio-core contents into gnuradio-runtimeJohnathan Corgan2013-03-261-0/+243