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 two new kwargs to ADTriggerStatus __init__, to allow for using different signals than default AD #1177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jwlodek
Copy link
Member

@jwlodek jwlodek commented Feb 15, 2024

Currently ADTriggerStatus essentially hard codes the two signals that are watched/compared when reporting the progress of a trigger execution. I know of at least a few cases where this isn't desirable due to either non-standard AD driver behavior, or because the underlying detector relies on a different progress metric than completed/readout frames.

I'd like to get some feedback on whether or not this approach is reasonable, and if yes I can write up a unit test or two to check behavior when either or both signals are overridden.

@tacaswell
Copy link
Contributor

Seems reasonable, but needs updates to docstring please.

@jwlodek
Copy link
Member Author

jwlodek commented Mar 22, 2024

Hm. Not sure why those commits are now included here since they are already merged with master. Let me clean this up.

@tacaswell tacaswell force-pushed the make-adtriggerstatus-reusable branch from 0033f48 to 7e5e723 Compare April 16, 2024 21:27
@tacaswell
Copy link
Contributor

I think you did a rebase, merge from your remote, push cycle. I rebased and force-pushed for you.

@@ -24,29 +24,45 @@ class ADTriggerStatus(DeviceStatus):
A Status for AreaDetector triggers

A special status object that notifies watches (progress bars)
based on comparing device.cam.array_counter to device.cam.num_images.
based on comparing the two signal values counter_signal and
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be a numpydoc style docstring?

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