-
Notifications
You must be signed in to change notification settings - Fork 110
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 validation to design matrix #9915
Conversation
ef743e9
to
09a6a89
Compare
09a6a89
to
dc7757f
Compare
CodSpeed Performance ReportMerging #9915 will improve performances by 12.16%Comparing Summary
Benchmarks breakdown
|
@@ -88,6 +88,9 @@ def __init__( | |||
self._active_realizations_field.setText( | |||
ActiveRange(design_matrix.active_realizations).rangestring | |||
) | |||
self._active_realizations_field.setValidator( | |||
RangeStringArgument(design_matrix.get_num_realizations()) |
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.
What does this do?
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.
This would not work if the user is missing realizations in their designmatrix. Example: User only has real 0,1,5,6,9 in design matrix. This range string would not be validated correctly in this case.
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.
Then if we don't have such a custom validator, I'd say let's just check on the actual run whether the active realization mask matches the active realizations in the field box?
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.
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.
Yes, but active_mask=[0,5,9] and you set it to 0-9
?
b60441e
to
e003f77
Compare
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.
Very nice PR @jonathan-eq ! Could you update the commit message that includes all the new items that it adds?
8a97a57
to
cdffdb1
Compare
This commit adds some validation to design matrix, and also makes the active_realizations_field in the gui only accept realizations actually found in design matrix. The designmatrix validation added in this commit: * parameter names cannot contain multiple words * parameter names cannot be numerical
cdffdb1
to
6f3fb02
Compare
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.
😍 🚀
Issue
Resolves #8686
Approach
The commits in this PR add more validation to design matrix
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests'
)When applicable