-
Notifications
You must be signed in to change notification settings - Fork 3
Fix validation of model parameters using schemas. #1302
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
Conversation
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/simtools/data_model/validate_data.py:199
- Returning [None] in case of TypeError might mask other issues. Consider handling the error more specifically.
return [None], target_unit
This comment has been minimized.
This comment has been minimized.
1 similar comment
Analysis Details0 IssuesCoverage and DuplicationsProject ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w |
- description: |- | ||
Any displacement along x in the focal plane from asymmetric PSF behavior. | ||
type: double | ||
unit: cm |
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.
should here and in the following be a allowed range?
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.
I think the displacement does not have a limit (there is obviously a limit given by the size of the telescopes).
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.
Ok all good then, thanks!
Thanks @tobiaskleiner ! |
The validation of model parameters using schema generates several errors (see #1301).
This PR fixes those:
"value": null
cases (values are None)booleans
(values where wrongly converted to int along the way in the code)nsb_pixel_rate
)Closes #1301