-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add adistream CLI tool #496
base: main
Are you sure you want to change the base?
Add adistream CLI tool #496
Conversation
from genalyzer import WaveformGen | ||
from pynput import keyboard | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add documentation/comments for functions/properties
9ea49a2
to
8b606e6
Compare
.. note:: | ||
|
||
For the adistream CLI tool to generate and stream data to the device, it's also needed to install the `genalyzer <https://analogdevicesinc.github.io/genalyzer/master/setup.html#windows>`_ and its python bindings. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the #windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a specific doc page for tools. That way users are aware these things exist. We will also need a unit to this as well. See here https://jugmac00.github.io/blog/testing-argparse-applications-the-better-way/
8b606e6
to
25ebc31
Compare
25ebc31
to
8472ebe
Compare
Add adistream CLI tool to support data generation and streaming for tx devices like DACs. Update doc to include new tools optional dependency. Add doc page for tools. Signed-off-by: SGudla <[email protected]>
8472ebe
to
e0e8d1f
Compare
test/test_adistream.py
Outdated
import argparse | ||
|
||
import pytest | ||
from adi.tools.adistream import run_adi_stream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need an import check to see if adi tools was imported. Otherwise this will always break tests when the dependencies don't exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, ModuleNotFoundError is occurring when importing Genalyzer. Shall I skip the tests if an import error occurs here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I know if any more changes need to be made, @tfcollins?
e899e7d
to
9229ce7
Compare
9229ce7
to
c5e48a1
Compare
c5e48a1
to
2262995
Compare
Change log: |
Signed-off-by: SGudla <[email protected]>
2262995
to
acdcc9b
Compare
Change log: |
Hi @tfcollins, |
CI is failing still. That needs to be addressed first |
Add adistream CLI tool to support data generation and streaming for tx devices like DACs.
Update doc to include new tools optional dependency.
Description
The new CLI tool helps in generating various types of waveforms using the Genalyzer APIs and streaming them to the device.
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Documentation
Quick start doc has been updated with the dependencies. The help command in the tool gives a detailed description of how to use the tool.
Checklist: