-
Notifications
You must be signed in to change notification settings - Fork 1
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 more testing for missing variables for Channel Settings. #40
Comments
@edyoshikun and I discussed this with @JoOkuma and found that For example:
is "failing silently" which is the type of error @edyoshikun is seeing here. An alternative that's closer is:
which gives an error, but this solution requires that you provide If you want
|
Sorry, this was a know (to me) issue. The solution, as you figured out, is to create a config which forbids extra args rather than silently ignoring them. Here is more documentation: https://docs.pydantic.dev/latest/usage/model_config/ |
I spoke too soon...this turned out to more challenging than I anticipated. On my initial attempt I looked for a way to forbid extra parameters for the existing pydantic Next, I made an attempt to migrate the I am concerned that continuing down this @ziw-liu @ieivanov @edyoshikun if you can see a smoother path that leaves the existing work unchanged I'm open to it. |
When I wrote iohub's NGFF models I started with |
Let me take a quick look also. @talonchandler what branch are you working off of? |
@talonchandler I think the difference is in how you apply the I started this work in #73 , you're welcome to pick up from here or transfer these commits to another PR you're working on |
Openning this issue to point and document some errors that we ran during acquisition.
Problem:
In the last experiment, copy/pasting the old yaml file lead to some bugs. The old mantis Yaml files used the
channel settings
->time_internal_s
vs the newchannel settings
->time_interval_s
. The slight misspeling does not throw errors and can blindly run the code.Solution:
Create tests on the pydantic base model so that there are some variables that should be required for the acquisition to run. This ensures the variables match the model's settings names.
The text was updated successfully, but these errors were encountered: