Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | python: Add __repr__, property bindings to NocBlockBase | Aaron Rossetto | 2020-06-09 | 1 | -5/+17 |
| | | | | | | | | | | | | | | | | | | | | | This commit adds a __repr__ function to the noc_block_base bindings, which helpfully displays the block's unique ID, e.g.: >>> block = g.get_block('0/VectorIIR#0') >>> block <NocBlock for block ID '0/VectorIIR#0'> Also added are get_property_ids and set_properties functions, so Python clients can set block properties by string if desired, e.g.: >>> block.get_property_ids() ['alpha', 'beta', 'delay', 'max_delay'] >>> block.set_properties('alpha=0.45,beta=0.77,delay=41') >>> viir = uhd.rfnoc.VectorIirBlockControl(block) >>> viir.get_alpha(0) 0.45 >>> viir.get_beta(0) 0.77 | ||||
* | python: rfnoc: finishing noc_block_base::get_mtu | Brent Stapleton | 2020-01-06 | 1 | -0/+26 |
| | | | | | | | Adding bindings for res_source_info, which allows us to use noc_block_base::get_mtu. Fixes: 400b00c34338 ("rfnoc: adding RFNoC Python API") | ||||
* | python: rfnoc: make block_id_t more compatible with strings | Brent Stapleton | 2020-01-06 | 1 | -0/+3 |
| | | | | | Allows the RFNoC Python API to automatically convert strings to block_id_t's. | ||||
* | rfnoc: adding RFNoC Python API | Brent Stapleton | 2020-01-02 | 1 | -0/+247 |
Adding Python bindings for the RFNoC API. This includes the rfnoc_graph, noc_block_base, and several other supporting classes. Templated functions are not currently supported. For example, `rfnoc_graph::get_block` can only return the basic block controller. |