-
Notifications
You must be signed in to change notification settings - Fork 101
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
rahur-NI d9fba59
Inclusion of test case for WriteWaveformComplexF64
rahur-NI c8f4dfe
Implementation of f32 and i16 and respective test cases
rahur-NI aaf9386
Updated changelog and included examples
rahur-NI 599c0df
Updated the metadata
rahur-NI d7df61d
Remove log file
rahur-NI aceaa16
Updated functions.py file and few minor cahnges
rahur-NI 37d092d
Update Changelog.md file
rahur-NI 9a411cf
Updated minor change.
rahur-NI ac28335
Updated few minor fix
rahur-NI 9d8d534
Updated the waveform type as ctype
rahur-NI a689934
Updated the seesion lock parameter for new arb functions
rahur-NI 7466bfd
Updated Code Review comments
rahur-NI 7363e36
Change log code review comments included
rahur-NI d07653f
Removed RFSG specific changes and include complextype only if needed
rahur-NI 50ed57d
Removed RFSG specific changes
rahur-NI 2d030ce
Updated matchers and complextype file to be generated bsaed on condit…
rahur-NI 3cfb37d
Updating spacing issue
rahur-NI 6aeda17
Updating the complex variables and code review comments incorporated
rahur-NI ebb27fa
Test case name change
rahur-NI 5394faf
Updating minor fixes
rahur-NI 59f87fc
Updating the test cases
rahur-NI d77892d
Update i16 functions
rahur-NI 27db04c
Update duplicate entries
rahur-NI 53232bf
remove zone.identifier file changes.
rahur-NI 8071d7d
Updaed comments for are_complex_parameters_used
rahur-NI e883c46
Updated the numpy api names and description.
rahur-NI f2fc824
Updating default value of complext type as None rather than 'none'
rahur-NI d2681cd
Moving the common lines in complex matchers into a function
rahur-NI 6da61f1
Merge branch 'ni:master' into complexNumberSupport
rahur-NI f52aef8
Updaing the library.py.mako file to import complex type
rahur-NI 23ff306
Code Reivew Changes
rahur-NI 5669590
Updaed code review comments
rahur-NI c1e19d2
Updaing only necessary fields in COMPLEX_NUMBER_PARAMETERS
rahur-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.