summaryrefslogtreecommitdiff
path: root/gr-blocks/python
Commit message (Collapse)AuthorAgeFilesLines
* file_source: add optional offset (in items) and len (in items)Jeff Long2018-02-084-167/+283
| | | | | | | - Adds unit tests, and splits existing unit tests into different files: qa_file_source.py - tests file_source_f qa_file_sink.py - tests file_sink_f qa_file_descriptor_source_sink.py - tests file_descriptor_*_f
* qa_file_source_sink.py: create file_source after file has been populatedJeff Long2018-02-081-9/+8
| | | | | | Test was opening zero-length file and depending on it to be populated later. With addition of offset/length fields, file_source will be required to check file size on open.
* blocks: hier_block2 now throws RuntimeError instead of ValueError on misuseAndrej Rode2018-02-061-14/+14
|
* Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
|\
| * Comment typo fixing.luz.paz2018-02-031-1/+1
| | | | | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | Merge branch 'master' into nextJohnathan Corgan2017-10-051-1/+67
|\| | | | | | | | | | | | | Conflicts: gr-digital/examples/CMakeLists.txt gr-uhd/lib/usrp_source_impl.cc gr-uhd/lib/usrp_source_impl.h
| * Merge remote-tracking branch 'github/pr/1462'Johnathan Corgan2017-10-051-23/+24
| |\ | | | | | | | | | | | | Conflicts: gr-blocks/python/blocks/qa_moving_average.py
| | * removed print debugging in QA testMarcus Müller2017-09-261-5/+0
| | |
| | * Added a vector operation mode to the moving averageMarcus Müller2017-09-081-1/+37
| | | | | | | | | | | | | | | | | | This allows users to average per-element. Might be very useful for spectrum "condensing" and such.
| * | Merge branch 'maint'Johnathan Corgan2017-10-051-0/+65
| |\ \ | | |/ | |/|
| | * [gr-blocks] improve moving_average unit testSebastian Müller2017-09-301-0/+65
| | |
* | | Merge branch 'master' into nextJohnathan Corgan2017-08-271-0/+28
|\| |
| * | Swap (potentially infinite) timeout with fixed delayBrian Orr2017-08-151-2/+1
| | |
| * | Fix invalid Asio buffer usage in tcp_connectionBrian Orr2017-08-091-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Asio requires that the underlying buffer passed to `async_write()` remain valid valid until the handler was called. The previous version was allocating a vector on the stack which gets destroyed once the `send()` method returns. Added a unit test for TCP server.
* | | Merge branch 'master' into nextJohnathan Corgan2017-08-031-0/+25
|\| |
| * | Merge remote-tracking branch 'github/pr/1396'Johnathan Corgan2017-08-031-0/+25
| |\ \
| | * | block python gateway: add WORK_CALLED_PRODUCE/_DONE proxyMarcus Müller2017-07-281-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that we can then have def general_work(self, input_items, output_items): … self.produce(0,2) self.produce(1,1) return gr.WORK_CALLED_PRODUCE Includes a unit test. We need more unit tests. There wasn't a single general block test in qa_block_gateway.py.
* | | | Merge branch 'master' into nextJohnathan Corgan2017-07-131-0/+62
|\| | |
| * | | Merge remote-tracking branch 'github/pr/1301'Johnathan Corgan2017-07-131-0/+62
| |\ \ \ | | |/ / | |/| |
| | * | set_begin_tag now takes pmt::pmt instead of boolRuben Undheim2017-05-191-2/+3
| | | |
| | * | Address comment in pull request to use "with" with tempfileRuben Undheim2017-05-191-27/+25
| | | |
| | * | blocks: file_source ("file_begin" stream tag)Ruben Undheim2017-05-191-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | - Add a configurable "file_begin" stream tag which is especially useful in repeat mode. - Added unit tests for new functionality
* | | | Merge branch 'master' into nextJohnathan Corgan2017-06-221-0/+75
|\| | |
| * | | Merge remote-tracking branch 'github/pr/1300'Johnathan Corgan2017-06-221-0/+75
| |\ \ \
| | * | | blocks: tag_gate (improvements)Ruben Undheim2017-04-261-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make it possible to specify a single tag key to look for instead of all tags. - Extended unit test for new functionality - Actually fix a bug which made the unit test do nothing earlier
* | | | | Merge branch 'master' into nextJohnathan Corgan2017-06-221-0/+2
|\| | | |
| * | | | Merge branch 'maint'Johnathan Corgan2017-06-221-0/+2
| |\ \ \ \ | | |_|/ / | |/| | / | | | |/ | | |/| Conflicts: gr-uhd/apps/uhd_app.py
| | * | gr_blocks: fix qa_file_metadata not calling close() on file sourcegnieboer2017-06-161-0/+2
| | | |
* | | | Merge branch 'master' into nextJohnathan Corgan2017-05-151-41/+38
|\| | |
| * | | Merge branch 'maint'Johnathan Corgan2017-05-151-41/+38
| |\| | | | |/ | |/|
| | * Use Python's tempfile module for unit testRuben Undheim2017-05-141-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | Instead of setting a fixed file name for unit test of file_source, rather employ the tempfile module in a with statement. This was suggested by Johnathan in https://github.com/gnuradio/gnuradio/pull/1301
* | | Merge branch 'master' into nextJohnathan Corgan2017-04-031-0/+73
|\| |
| * | blocks: Add tag share blockmhostetter2017-03-291-0/+73
| | | | | | | | | | | | The tag share block is used to transfer or share tags from one stream to another. The block takes two inputs and one output. The Input 0 stream is propagated to Output 0. In addition, the tags from Input 1 are added to the Input 0 stream. This is useful for transferring a detection tag from a correlate_access_code_bb block to the main complex stream, for example.
* | | Merge branch 'master' into nextJohnathan Corgan2017-03-271-0/+66
|\| |
| * | blocks: Add exponentiate const int blockmhostetter2017-03-271-0/+66
| |/ | | | | | | The Exponentiate Const Int block takes an integer power of the input complex stream. The exponent parameter must be at least 1. There is also a callback function so the exponent can be changed at runtime.
* | gr-blocks: removed blks2 namespace blocksJohnathan Corgan2016-10-237-438/+0
| | | | | | | | | | | | * This also removes blks2 from gr-digital; however, the old style OFDM code still uses this and are broken until they are removed.
* | Merge branch 'deprecate-blks2' into rm-blks2Johnathan Corgan2016-10-233-0/+12
|\|
| * gr-blocks: add warnings to deprected blks2 blocksJohnathan Corgan2016-10-233-0/+12
| |
* | fixed QA, conditionalized adding loopMarcus Müller2016-09-151-3/+3
| |
* | Merge remote-tracking branch 'github/rm-old-msgq' into nextJohnathan Corgan2016-09-082-57/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-blocks/grc/blocks_message_burst_source.xml gr-blocks/grc/blocks_message_sink.xml gr-blocks/grc/blocks_message_source.xml gr-blocks/include/gnuradio/blocks/message_burst_source.h gr-blocks/include/gnuradio/blocks/message_sink.h gr-blocks/include/gnuradio/blocks/message_source.h
| * | blocks: remove old style message queue blocksJohnathan Corgan2016-09-032-57/+1
| | |
* | | wxgui: removedJohnathan Corgan2016-09-081-3/+0
|/ /
* | blocks: add QA for new block log_level accessorsNathan West2016-08-041-0/+96
| | | | | | | | | | This exists in gr-blocks to test functionality in runtime because runtime doesn't have any blocks
* | cmake: nuke cpack from existenceJohnathan Corgan2016-08-032-3/+0
| | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* | Merge branch 'master' into nextJohnathan Corgan2016-08-011-0/+87
|\|
| * tcp_server_sink: QAJiří Pinkava2016-06-291-0/+87
| |
* | blocks: use possibility to shutdown flow graph in unit testsBastian Bloessl2016-06-291-12/+7
|/
* Merge branch 'maint'Johnathan Corgan2016-06-251-1/+25
|\
| * runtime: fix state handling in top_blockJiří Pinkava2016-06-251-1/+25
| | | | | | | | | | | | | | | | | | | | d_state is intended to track running state of top block. * initial state is IDLE * set state to RUNNING when start() is called * set state to IDLE when stop() is called * set state to IDLE when all work is done (reqires call of wait()) * unlock() resume/start execution only if state is RUNNING
* | Merge branch 'maint'Johnathan Corgan2016-04-271-1/+59
|\|