-
Notifications
You must be signed in to change notification settings - Fork 99
Support for complex types #2098
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3797c61
Implementation of Complex Numbers
rahulr-NI d9fba59
Inclusion of test case for WriteWaveformComplexF64
rahulr-NI c8f4dfe
Implementation of f32 and i16 and respective test cases
rahulr-NI aaf9386
Updated changelog and included examples
rahulr-NI 599c0df
Updated the metadata
rahulr-NI d7df61d
Remove log file
rahulr-NI aceaa16
Updated functions.py file and few minor cahnges
rahulr-NI 37d092d
Update Changelog.md file
rahulr-NI 9a411cf
Updated minor change.
rahulr-NI ac28335
Updated few minor fix
rahulr-NI 9d8d534
Updated the waveform type as ctype
rahulr-NI a689934
Updated the seesion lock parameter for new arb functions
rahulr-NI 7466bfd
Updated Code Review comments
rahulr-NI 7363e36
Change log code review comments included
rahulr-NI d07653f
Removed RFSG specific changes and include complextype only if needed
rahulr-NI 50ed57d
Removed RFSG specific changes
rahulr-NI 2d030ce
Updated matchers and complextype file to be generated bsaed on condit…
rahulr-NI 3cfb37d
Updating spacing issue
rahulr-NI 6aeda17
Updating the complex variables and code review comments incorporated
rahulr-NI ebb27fa
Test case name change
rahulr-NI 5394faf
Updating minor fixes
rahulr-NI 59f87fc
Updating the test cases
rahulr-NI d77892d
Update i16 functions
rahulr-NI 27db04c
Update duplicate entries
rahulr-NI 53232bf
remove zone.identifier file changes.
rahulr-NI 8071d7d
Updaed comments for are_complex_parameters_used
rahulr-NI e883c46
Updated the numpy api names and description.
rahulr-NI f2fc824
Updating default value of complext type as None rather than 'none'
rahulr-NI d2681cd
Moving the common lines in complex matchers into a function
rahulr-NI 6da61f1
Merge branch 'ni:master' into complexNumberSupport
rahulr-NI f52aef8
Updaing the library.py.mako file to import complex type
rahulr-NI 23ff306
Code Reivew Changes
rahulr-NI 5669590
Updaed code review comments
rahulr-NI c1e19d2
Updaing only necessary fields in COMPLEX_NUMBER_PARAMETERS
rahulr-NI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ${template_parameters['encoding_tag']} | ||
| # This file was generated | ||
| <% | ||
| import build.helper as helper | ||
| config = template_parameters['metadata'].config | ||
| module_name = config['module_name'] | ||
| %>\ | ||
| import ctypes | ||
| import ${module_name}._visatype as _visatype | ||
|
|
||
|
|
||
| class NIComplexNumber(ctypes.Structure): | ||
| _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] | ||
|
|
||
|
|
||
| class NIComplexNumberF32(ctypes.Structure): | ||
| _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] | ||
|
|
||
|
|
||
| class NIComplexI16(ctypes.Structure): | ||
| _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.