-
Notifications
You must be signed in to change notification settings - Fork 0
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
Option to change DataStream parameters during .submit_data()
?
#258
Comments
Hmmm I am a bit surprised. That means all the process / experiments / services reading from this datastream must be ready to adapt to a type change? |
Yes, modification of the original data stream size was needed for the accufiz service. It looks like historically the data was transformed and clipped a bit based radius mask resulting a change in the initial data stream which was set by sensor size in the .yml. Or you could imagine a camera with a windowing capability that can be changed on the fly |
@raphaelpclt I specifically mean, have an argument in catkit2/catkit2/services/zwo_camera/zwo_camera.py Lines 189 to 193 in f90c03f
and also for the dtype. We've been repeating this piece of code a few times now, and while I originally thought being strict was the way to go, having an opt-in which does this for you, could be useful. |
@lanemeier7 Indeed we do this for windowing cameras, dOTF intermediate results, etc... Basically anything where the shape is not known in advance and can change on the fly. You still pay a runtime cost when switching dimensions, but unless you're doing that every single frame (which you should not be doing), then it's fine. |
Or maybe make Or maybe have a |
The flag sounds the cleanest to me, then it won't add any lines of code to the service logic. |
For many services, we want to just submit data, and change DataStream shape and dtype to whatever we are submitting. It would be nice if there is an option in
DataStream.submit_data()
for that. Something like:Opinions? @raphaelpclt @lanemeier7
The text was updated successfully, but these errors were encountered: