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

Restore deprecated parameter setters and getters #790

Merged

Conversation

jenshnielsen
Copy link
Collaborator

On top of #788

Basically add set and get back for delay and step as deprecated functions to unbreak anything that depends on it along with allowing step to be zero as documented in the tutorial.

Also updates the tutorial to use non deprecated properties

@jenshnielsen
Copy link
Collaborator Author

@damazter I think the merge of #600 broke some drivers for you. Can you see if this would fix it for you?

@damazter
Copy link
Contributor

I put in on my todo list

@WilliamHPNielsen
Copy link
Contributor

This does not solve the issue with the IVVI driver.

The issue is the following: a parameter is added using the add_parameter method with the kwarg delay. An error is raised, TypeError: __init__() got an unexpected keyword argument 'delay'

@jenshnielsen
Copy link
Collaborator Author

Ok can you merge #788 and I will try to fix that here too

@WilliamHPNielsen
Copy link
Contributor

Done.

This is how the official documentation does it and avoids a number of linter warnings
unbreaks some scripts and drivers that may be relying on this
jenshnielsen and others added 2 commits October 16, 2017 13:36
the order is still scrambled but there is not much we can do about that
@jenshnielsen
Copy link
Collaborator Author

Ok I think that should have been taken care of now too

@WilliamHPNielsen
Copy link
Contributor

As far as I can see, it solves the issue. 👍

Copy link
Contributor

@WilliamHPNielsen WilliamHPNielsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get this in. More can be added later.

@WilliamHPNielsen WilliamHPNielsen merged commit b087b32 into microsoft:master Oct 16, 2017
giulioungaretti pushed a commit that referenced this pull request Oct 16, 2017
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Restore deprecated parameter setters and getters (#790)
@jenshnielsen jenshnielsen deleted the parameter_restore_deprecated branch October 16, 2017 12: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.

None yet

3 participants