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

add unit test for stop() method #618

Closed
prjemian opened this issue Jan 12, 2022 · 2 comments · Fixed by #620 or #622
Closed

add unit test for stop() method #618

prjemian opened this issue Jan 12, 2022 · 2 comments · Fixed by #620 or #622
Assignees
Labels
Milestone

Comments

@prjemian
Copy link
Contributor

def stop(self, *, success=False):
"""
Hold the current readback when stop() is called and not :meth:`inposition`.
"""
if not self.inposition:
self.setpoint.put(self.position)

@prjemian
Copy link
Contributor Author

prjemian commented Jan 12, 2022

Also add self.stop = self.temperature.stop to each linkam's __init__() method.

@ilavsky, Thanks for the suggestion!

prjemian added a commit that referenced this issue Jan 16, 2022
prjemian added a commit that referenced this issue Jan 16, 2022
prjemian added a commit that referenced this issue Jan 17, 2022
prjemian added a commit that referenced this issue Jan 17, 2022
prjemian added a commit that referenced this issue Jan 17, 2022
prjemian added a commit that referenced this issue Jan 17, 2022
@prjemian
Copy link
Contributor Author

Re-opening since related workflow still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant