summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/pmt/qa_pmt.py
Commit message (Collapse)AuthorAgeFilesLines
* qa: run autopep8 formatting on qa python filesmormj2020-10-301-6/+8
| | | | | | 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.
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+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: 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-271-13/+1
|
* Added a bunch of tests that will only work after fixing the pmt bugShane2019-01-261-0/+69
|
* pmt: Serialize PMTs to byte strings in Python (and vice versa)Martin Braun2018-06-291-1/+1
|
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-1/+3
|
* 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()).
* 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
* Merged next into uninstalled import branch.Ben Reynwar2013-04-021-1/+1
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-011-0/+102
PMTs are handled slightly different and are installed into their own module and include dir.