-
Notifications
You must be signed in to change notification settings - Fork 52
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 return_to_original_state
option to acquisition
#144
Comments
Since
Having something like What do you think about that? |
Agree
Yes, I like the interface you suggest. I think this can be done purely in the correspond to functions in the core api (like This I think needs to be included, because much of the functionality is not duplicated with properties in devices. For example, some, but not all, cameras have a property for exposure that does the same thing as the But then there's also obviously a lot that this won't capture that's only in device properties. And then the are other weird cases where the API might break down like multi-camera. Does calling In light of that, it might be good to include all properties for every device. I think the functions in the core that mess around with "systemState" do something similar to this, but I've never tried them. For example: https://valelab4.ucsf.edu/~MM/doc-2.0.0-gamma/mmcorej/mmcorej/CMMCore.html#setSystemState-mmcorej.Configuration- |
Yeah, this might be tricky, but I think what you're suggesting makes sense. I was thinking of generating a list of all device properties and then changing them back if they are different and writable. This will not capture functional calls, however. Maybe the systemState in the API can do it all? |
No, I think its the reverse: System state is a list of all properties and their values. You can also get use So it might be nice to have different levels of thoroughness for such a function. At minimum, I think it makes sense to start with running through the API calls, since this is exclusively what the acquisition uses, so anything that changes through acquisition should be reset-able here. Next, you could add in the config groups, since these properties that are more likely to be used. Next the full set of properties as described by the system state cache. Finally the full set of properties as defined by the system state. You want to give it a shot and I'll look over what you come up with? |
Ah, I see. We should provide the option to use cached or fresh states as you suggested. I don't think I have bandwidth to write code for this now (we're trying to push a paper out), but I could try in a couple of months if you or someone else hadn't gotten to it first. Happy to help with testing or discussing ideas in the meantime. |
to return all stages, cameras, etc to their pre-acqusition state, if desired
The text was updated successfully, but these errors were encountered: