-
Notifications
You must be signed in to change notification settings - Fork 93
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
Change repeated capabilities #718
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
3dc54c9
Add repeated_capabilities key in config for all drivers
texasaggie97-zz ad95cba
Update tests for new method of accessing repeated capabilities
texasaggie97-zz 10eade5
Change how repeated capabilities are handled
texasaggie97-zz 3860ec6
Update generated files
texasaggie97-zz a89cd1f
Update changelog
texasaggie97-zz bf49be6
Add function example in changelog
texasaggie97-zz ea96d19
Case insensitive check
texasaggie97-zz 8458488
Missed a channel reference
texasaggie97-zz b6c1330
Update generated files
texasaggie97-zz 0467916
Fix parent/child instance variables
texasaggie97-zz 339908b
Update generated files
texasaggie97-zz 8ba8760
Fix up channel based tip admonition for new syntax
texasaggie97-zz fe0b7a1
Update generated files
texasaggie97-zz a5ee751
Change channel rep cap class to plural - channels
texasaggie97-zz 5e51689
Add Marker and Script Trigger repeated capabilities to FGen
texasaggie97-zz cb97f7f
Fix typo in names
texasaggie97-zz 186dd6c
Update tests for plural channels
texasaggie97-zz e4152b9
Use duck typing insted of checking for list
texasaggie97-zz c764db6
Fix tests
texasaggie97-zz 86c220a
Update generated files
texasaggie97-zz 5790fb3
Fix tests to use range() instead of driver channel list format
texasaggie97-zz 2832f66
Add example to show using range() as a rep cap list
texasaggie97-zz ae065a2
Fix range usage
texasaggie97-zz 6588ecf
Fix range usage
texasaggie97-zz 798ba75
Merge branch 'master' into api/rep_caps
texasaggie97-zz e5c2322
Merge branch 'master' into api/rep_caps
texasaggie97-zz d84fc00
Missed channel string
texasaggie97-zz 558bded
Merge branch 'master' into api/rep_caps
texasaggie97-zz 94696e1
Merge branch 'master' into api/rep_caps
texasaggie97-zz 188832d
Merge branch 'master' into api/rep_caps
texasaggie97-zz 2916d4a
Have to use timedelta for all timeouts
texasaggie97-zz 1b0d10d
Rename _RepeatedCapabilites to _SessionBase
texasaggie97-zz 5b2fd0f
Add support for slices
texasaggie97-zz d3a91b4
Update generated files
texasaggie97-zz c8df30b
Merge branch 'master' into api/rep_caps
texasaggie97-zz 747368d
Merge master
texasaggie97-zz e61b621
Merge branch 'master' into api/rep_caps
texasaggie97-zz 18c489f
Make formatting consisten with other branches
texasaggie97-zz c572c70
Merge branch 'master' into api/rep_caps
texasaggie97-zz 3dda354
Merge branch 'master' into api/rep_caps
texasaggie97-zz d9443dd
Change logic for finding lists
texasaggie97-zz 4f13ed8
Add test cases for all supported formats for repeated capabilities
texasaggie97-zz 80dfc2f
Update generated files
texasaggie97-zz 01aab4f
Move more complete information into readme
texasaggie97-zz 32cc605
Use python names
texasaggie97-zz 3e5ab43
Mention issue in readme
texasaggie97-zz 83e059d
Move repeated caps login into _converters and test
texasaggie97-zz 049ccfc
Update generated files
texasaggie97-zz 6eab9b4
Test int and string
texasaggie97-zz 7337b8e
Remove now redundant tests
texasaggie97-zz 24b67f7
Update generated files
texasaggie97-zz d08ea33
Only define one class and instantiate multiple times
texasaggie97-zz ff3dfb3
Spaces matter
texasaggie97-zz 603e9ac
Update generated files
texasaggie97-zz 61c7d2f
Add comments in __init__
texasaggie97-zz 0b43ad4
Initialize _RepeatedCapabilities with Session instead of individual i…
texasaggie97-zz e9891b7
Update generated files
texasaggie97-zz ff9213b
Remove p2p mentions.
texasaggie97-zz fe9e2c0
Use auto numbering for the enum
texasaggie97-zz ed34c39
Fix readme
texasaggie97-zz 7fa18ce
Once we have a list, we just call ourselves with it
texasaggie97-zz 2026eb0
No default parameters on _SessionBase __init__, pass None in explicitly
texasaggie97-zz d7ae7d6
Update generated files
texasaggie97-zz 951f5f9
Change logic for getting repeated capability string
texasaggie97-zz d7f89d2
Don't show using prefix
texasaggie97-zz b2c8bbb
Update generated files
texasaggie97-zz 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 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 |
---|---|---|
|
@@ -9,4 +9,4 @@ commands.log | |
.vscode/launch.json | ||
.vscode/settings.json | ||
|
||
|
||
.pytest_cache/ |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -20,6 +20,10 @@ | |
'mechanism': 'fixed, passed-in, len', | ||
'python_api_list': True, | ||
} | ||
# Only difference is we want to skip parameters not in api | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand the DRYness factor of this, but for consistency maybe just copy/paste? |
||
_parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_INIT_DECLARATION] = _parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_METHOD_DECLARATION].copy() | ||
_parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_INIT_DECLARATION]['python_api_list'] = False | ||
|
||
_parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_NUMPY_INTO_METHOD_DECLARATION] = { | ||
'skip_session_handle': True, | ||
'skip_input_parameters': False, | ||
|
@@ -46,6 +50,9 @@ | |
'mechanism': 'fixed, passed-in', | ||
'python_api_list': True, | ||
} | ||
# Only difference is we want to skip parameters not in api | ||
_parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_INIT_CALL] = _parameterUsageOptionsFiltering[ParameterUsageOptions.SESSION_METHOD_CALL].copy() | ||
|
||
_parameterUsageOptionsFiltering[ParameterUsageOptions.DOCUMENTATION_SESSION_METHOD] = { | ||
'skip_session_handle': True, | ||
'skip_input_parameters': False, | ||
|
This file contains 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 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.
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.
how come you didn't use
with
? If you'd still rather not, then maybe show how you close the session?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 wasn't trying to show how to write an actual useful program. Added
session.close()