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

Refactor run_blocking_function #952

Open
prjemian opened this issue Mar 20, 2024 · 1 comment
Open

Refactor run_blocking_function #952

prjemian opened this issue Mar 20, 2024 · 1 comment
Labels
task Something to be done.
Milestone

Comments

@prjemian
Copy link
Contributor

Refactor the apstools.plans.run_blocking_function() plan to create a subclass or ophyd.Signal with an added trigger() method. In an inner function of that method, it runs the blocking function and then sets the status object to done. The plan calls the inner method with yield from bps.trigger(subclass_object).

@prjemian prjemian added the task Something to be done. label Mar 20, 2024
@prjemian
Copy link
Contributor Author

def run_blocking_function(function, *args, **kwargs):

@prjemian prjemian added this to the 1.7.1 milestone Sep 21, 2024
@prjemian prjemian modified the milestones: 1.7.1, 1.7.2 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Something to be done.
Projects
None yet
Development

No branches or pull requests

1 participant