aboutsummaryrefslogtreecommitdiffstats
path: root/host/python/usrp.py
Commit message (Collapse)AuthorAgeFilesLines
* python: Arrange file in Python module into uhd/ subdirectoryMartin Braun2020-03-101-141/+0
| | | | | | | | | | | | | | | This adds the host/python/uhd subdirectory, which will add all files that go into the actual Python module once installed. Before, all Python files were directly in host/python and got sorted into their appropriate destination folders during configuration and installation. This change doesn't change anything (Python modules will look the same as they do now), except that it makes the source tree a tad neater, but more importantly, it creates a consistent directory structure when adding submodules to the uhd module. Apart from the PyBind11-generated shared object file (which gets generated during build time), the uhd/ subdirectory in host/python exactly resembles the Python module once installed, so it's more obvious where to add new submodules and files.
* python: MultiUSRP: Fix send_waveforms()iprivit2019-11-131-1/+1
| | | | | | | | | | | | | The send_waveform() function takes the waveform_proto array and if it has only 1 channel, explicitly reshapes it to be (1, waveform_proto.size), or uses np.tile to replicate the waveform_proto array over X channels. It then proceeds to loop over the waveform_proto array, but attempts to do so over the channel dimension instead of looping over the actual samples. This results in sending the entire waveform_proto array regardless of the duration specified. The fix is to specify the dimension in which it crops, and not crop in dimension of the channels.
* Python: Remove Unnecessary Metadata AssignmentVidush2018-06-201-1/+0
|
* python: removing unnecessary configurationThibaud Marazano2018-06-201-1/+0
| | | | | | | Removed "set_tx_rate" that sets all channels initially, because the channel loop handles this. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* python: Separating exposed Python data structuresPaul David2018-06-201-0/+143
- Separating exposed Python data structures into logical sections - Exposes all of the multi_usrp API - Adds a layer of Python for documentation and adding helper methods - Adds improvements and fixes to the MultiUSRP object - Includes additional exposed data structures (like time_spec_t, etc.) - Add code to release the Python GIL during long C++ calls