summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/pmt
Commit message (Collapse)AuthorAgeFilesLines
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-0/+3
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* runtime: pep8 formattingJosh Morman2021-11-241-21/+41
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* Revert "Replace boost::any with std::any"Josh Morman2021-11-061-1/+1
| | | | This reverts commit ccd28dfbb1504fdc29db267acd8aa3354fe10cd2.
* Replace boost::any with std::anyMarcus Müller2021-10-281-1/+1
| | | | | | | | This is a modernization possible through C++17 Fixes #4780 Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* pmt: remove extra, mis-named pmt::pmt_ functionsJeff Long2021-05-192-73/+0
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* qa: run autopep8 formatting on qa python filesmormj2020-10-302-9/+10
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* pmt: add absolute pmt serialization QAJacob Gilbert2020-10-151-2/+197
| | | | currently there is nothing to check the absolute accuracy of PMT serialization, and it is easy for changes to break this provided serialize_str() and deserialize_str() are inverse functions. this provides some absolute reference PMT strings to ensure compatibility is retained.
* pmt: add binding for __repr__ functionJacob Gilbert2020-10-141-0/+1
| | | | per 3.8 behavior, and the GR wiki, the __repr__ function of a PMT object should be overloaded to call pmt::write_string. This is currently not bound so this adds this binding.
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-034-5/+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
* pmt: update pybind code for dcons and is_pmtJosh Morman2020-06-042-0/+12
|
* pybind: run clang-formatJosh Morman2020-06-041-9/+8
|
* pmt: replace "long" with int64_t in python bindingsJosh Morman2020-06-041-4/+4
| | | | | | | pygccxml seems to replace int64_t and uint64_t with long and unsigned long. This causes a mismatch in the overload on 32b systems Fixes #3408
* pmt: add pybind11 bindingsJosh Morman2020-06-0411-7/+2864
|
* pmt: stop treating all pairs like they are dictsJacob Gilbert2020-05-051-0/+1
| | | | create a new derived class for pmt dicts so they can be distinguished without complicated try/catch logic, updated QA with a few additional checks. also added an is_pdu() method which returns true if the pmt is a pair of a dict-type PMT and a uniform-vector type, otherwise false
* pmt: conditionalize testing of long > 2³² on sizeof(long)Marcus Müller2020-04-131-0/+8
|
* Update license header to SPDX formatdevnulling2020-01-275-65/+5
|
* Added a bunch of tests that will only work after fixing the pmt bugShane2019-01-261-0/+69
|
* gr-runtime: Improve exception handling in ControlPort MonitorBrennan Ashton2018-11-151-1/+2
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-315-24/+32
|\
| * pmt: Serialize PMTs to byte strings in Python (and vice versa)Martin Braun2018-06-291-1/+1
| |
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-245-22/+31
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-265-22/+31
| | |
| * | Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
| |\ \ | | |/ | |/|
| * | Merge branch 'master' into nextJohnathan Corgan2017-01-121-1/+1
| |\ \
| * | | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* | | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+1
| |_|/ |/| |
* | | Comment typo fixing.luz.paz2018-02-031-1/+1
| |/ |/| | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | runtime: fix numpy warningBob Iannucci2017-01-121-1/+1
|/ | | | The == operator on Numpy arrays is being redefined to work elementwise. Changing the == to 'is' should fix the problem.
* pmt: moves the rest of the PMT constants from static globals to using get_ ↵Tom Rondeau2015-02-261-0/+3
| | | | functions.
* pmt: Added float conversionMartin Braun2014-09-041-0/+2
| | | | | | Added to_float() and from_float(). These are basically aliases for *_double() with a type cast for when strict typing is necessary (e.g. SWIG won't accept an f32 value when using from_double()).
* Merge branch 'maint'Tom Rondeau2014-07-071-1/+1
|\
| * Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-1/+1
| | | | | | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* | runtime: mods for pmt's NIL.Tom Rondeau2014-06-282-5/+11
| |
* | Merge branch 'uint64_sugar' of git://github.com/osh/gnuradioJohnathan Corgan2014-05-231-1/+6
|\ \ | |/ |/|
| * pmt: support conversion of basic pmt pairs to pythonTim O'Shea2014-05-141-1/+6
| |
* | pmt: adding pmt.uniform_vector_itemsize(pmt_t vector), returns the size per ↵Tim O'Shea2014-05-141-0/+2
|/ | | | item in bytes within a uniform vector for any kind of uniform vector
* renamed and cleaned up a bitMarcus Müller2014-04-071-4/+3
|
* pmt_to_python: numpy_to_uvector and reverse works, QA addedMarcus Müller2014-04-072-26/+44
|
* set numpy_mappings -> dict, to fix py2.6 incompatibilityMarcus Müller2014-04-051-22/+23
|
* fix numpy to pmt uvector conversionTim O'Shea2014-03-261-8/+33
|
* Merge branch 'maint'Tom Rondeau2013-12-191-0/+1
|\
| * pmt: adds ability to handle unicode input with pmt_to_python.Sylvain Munaut2013-12-191-0/+1
| |
* | Add a QA_PYTHON_EXECUTABLE variable so QA code knows what python to use when ↵Philip Balister2013-12-051-1/+1
|/ | | | | | | | | | | | cross compiling. With this (and the prior) patch, you can mount the compile directory on the target and run the QA code (as long as the paths are the same). The qtgui tests fail if there is no X server. Volk seems to fail for hard float builds. We'll need to look at adding thes changes to gr_modtool. Signed-off-by: Philip Balister <philip@balister.org>
* Merged in next_docs branch.Ben Reynwar2013-05-191-1/+15
|\
| * docstrings: Improving subpackage docstrings.Ben Reynwar2013-05-101-1/+15
| |
* | Merged next into uninstalled import branch.Ben Reynwar2013-04-022-2/+10
|/
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-015-0/+311
PMTs are handled slightly different and are installed into their own module and include dir.