-
Notifications
You must be signed in to change notification settings - Fork 25
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
Sort the responses and parameter views #233
Conversation
9316d4a
to
cc26dc2
Compare
@@ -127,7 +127,8 @@ def update_graph( | |||
|
|||
def _generate_plot(ensemble_id: str, color: str) -> ResponsePlotModel: | |||
ensemble = load_ensemble(parent, ensemble_id) | |||
plot = _create_misfits_plot(ensemble.responses[response], [], color) | |||
resp = ensemble.responses[str(response)] |
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.
Is this refactoring really needed? Also, why is the string conversion required ? str(response)
?
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.
If I did not explicitly cast to string the type-check would complain about the Optional[str] type
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.
Still, something is fishy here that you had to explicitly cast to string... Any way this function is a bit messy I think it should be refactored in the future such that it does not take response
from the outer scope but it should expect a response name as part of the function arguments.
Ups did not want to approve just wanted to finish the review
1a356a1
to
eca2ef3
Compare
eca2ef3
to
bc10520
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.
LGTM 👍
Issue
Resolves #231