-
Notifications
You must be signed in to change notification settings - Fork 91
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 more nifgen systems tests, and retrofit nifgen examples #600
Conversation
|
||
|
||
def test_write_waveform_from_filei64(session): | ||
session.arb_sample_rate = 40000000 |
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.
There's no need to set sample rate here. Only do the absolute minimum you need to.
session.arb_sample_rate = 40000000 | ||
session.create_waveform_from_file_i16(os.path.join(os.getcwd(), 'systemtest_dependencies', 'SineI16BigEndian_1000.bin'), nifgen.ByteOrder.BIG_ENDIAN) # Enable after issue #538 fixed | ||
sample_rate = session.arb_sample_rate | ||
assert sample_rate == 40000000''' |
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.
move the closing ''' to its own line to match how you open it.
|
||
def test_write_waveform_from_filei64(session): | ||
session.arb_sample_rate = 40000000 | ||
session.create_waveform_from_file_i16(os.path.join(os.getcwd(), 'systemtest_dependencies', 'SineI16BigEndian_1000.bin'), nifgen.ByteOrder.BIG_ENDIAN) # Enable after issue #538 fixed |
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 would directly put the file next to the system test script, I don't think we need a separate folder.
Alternatively, there may be a really compact way to create this file from the the test when we need it, you could put it in the temp directory.
I improved the title, and changed the description so that #484 isn't automatically closed. Watch out for those! |
[X] This contribution adheres to CONTRIBUTING.md.
[ ] I've updated CHANGELOG.md if applicable.[X] I've added tests applicable for this pull request
What does this Pull Request accomplish?
Adding more system tests for nifgen
Fixed examples to have emus per #553
List issues fixed by this Pull Request below, if any.
Partial towards #484
What testing has been done?
system test, tox