Skip to content
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

Issue 148 - Property templates should support different commands for getting vs setting #172

Merged
merged 2 commits into from
Jun 9, 2017

Conversation

scasagrande
Copy link
Contributor

@scasagrande scasagrande commented Jun 9, 2017

This PR adds optional set_cmd=None parameter to each property factory to allow for those rare instruments that have asymmetric command strings for getting vs setting. We have one of those in the repo right now, so this will let us refactor that instrument to use the property factories.

This also renames the main parameter of those functions from name to command to go in line with set_cmd.

If set_cmd is not specified, then command is used for both the getting and setting string.

(address issue #148 )

@coveralls
Copy link

coveralls commented Jun 9, 2017

Coverage Status

Coverage increased (+0.07%) to 85.024% when pulling 1175de5 on issue_148 into cf71116 on develop.

@scasagrande scasagrande merged commit 363de47 into develop Jun 9, 2017
@scasagrande scasagrande deleted the issue_148 branch June 9, 2017 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants