summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gr/top_block.py
Commit message (Collapse)AuthorAgeFilesLines
* runtime: pep8 formattingJosh Morman2021-11-241-3/+5
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* runtime: Add terminate handlingPaul Wicks2020-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This consists of the following changes: 1. Add a top_block parameter to control exception handling This restores past behavior where the scheduler catches exceptions raised in block threads, allowing flowgraphs to continue running after the failure of an individual block. It also adds optional new behavior, selected by setting catch_exceptions=False to the top block, which causes exceptions to not be caught. In this mode of operation, a std::terminate handler can be installed to print a stack trace before the flowgraph exits. 2. Add terminate_handler to top_block_impl This adds a terminate_handler function that prints information about any uncaught exceptions and also attempts to print a backtrace for said exception after which it calls std::abort. The backtrace is printed via libunwind, which is a new optional dependency. If libunwind is not found/installed, then the terminate handler will still print information about the exception and then exit. Co-Authored-By: Scott Torborg <storborg@gmail.com>
* 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-8/+9
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Add a top_block parameter to control exception handlingScott Torborg2020-01-051-2/+2
| | | | | | | | | This restores past behavior where the scheduler catches exceptions raised in block threads, allowing flowgraphs to continue running after the failure of an individual block. It also adds optional new behavior, selected by setting catch_exceptions=False to the top block, which causes exceptions to not be caught. In this mode of operation, a std::terminate handler can be installed to print a stack trace before the flowgraph exits.
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-2/+2
| | | | | | | | | | | | | 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/
* runtime: gr_threading clutch obsolete; remove it and its usageMarcus Müller2018-11-121-5/+4
| | | | | | | | We essentially monkeypatched Python's `threading` module inelegantly to get around shortcomings in Python 2.3 and 2.4. Since support for these versions is long gone: removal of this clutch and its usage.
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-6/+9
|
* runtime: add flag to wrapped top_block to control SIGINT handling in wait()Sebastian Koslowski2015-05-291-4/+7
|
* runtime: fix deadlock in unlock() from Python #594Jiří Pinkava2015-04-011-1/+7
|
* runtime: add tests for new decorators in hier_block2Sebastian Koslowski2014-12-121-18/+20
|
* runtime: refactor top/hier block python wrappersSebastian Koslowski2014-12-101-97/+52
|
* runtime: whitespace fixesSebastian Koslowski2014-12-101-20/+19
|
* runtime: adds ability to output flowgraph in dot format (resolves issue 245).Johannes Schmitz2014-03-071-12/+16
|
* runtime: exception safe python blocking top block callsJosh Blum2013-05-231-3/+4
|
* runtime: migrate remaining gnuradio-core contents into gnuradio-runtimeJohnathan Corgan2013-03-261-0/+170