-
Notifications
You must be signed in to change notification settings - Fork 9
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 a context manager for AvailableData
#70
Add a context manager for AvailableData
#70
Conversation
src/runtime.rs
Outdated
consumed_bytes as _, | ||
) | ||
.ok() | ||
.expect("Unexpected failure: Was the CoreRuntime NULL?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.expect("Unexpected failure: Was the CoreRuntime NULL?"); | |
.expect("Unexpected failure"); |
My main concern with making |
…. Move RawAvailableData drop behavior into AvailableData.__exit__.
Quickly tested this while trying to reproduce/debug the build issue and found an issue when using the napari plugin to generate 100 frames for 1 simulated camera. The issue is that I don't get a layer or see any frames. I also get the following warning message in napari.
Seems to work OK on main. |
…lies-on-deletion-for-cleanup
closes #68 This is an alternative to #70. This is in draft until I feel more confident about the tests and the napari plugin. But I think it's close. --------- Co-authored-by: Alan Liddell <[email protected]> Co-authored-by: Alan Liddell <[email protected]>
No description provided.