Add error bars to charts#77
Merged
Merged
Conversation
ezrakilty
reviewed
May 27, 2026
| # First we want the standard deviations as percentages of the mean: | ||
| data_stddev_percent = np.divide(data_stddev, data) | ||
| # Then we apply the formula for error propagation for division | ||
| ratio_stddev = ratio * np.sqrt(np.square(data_stddev_percent[:, 0]) + np.square(data_stddev_percent[:, 1])) |
Contributor
There was a problem hiding this comment.
Rather than using all the colon/comma sort of notation, can we break out the different pieces and name them? That'll help me keep track.
ezrakilty
reviewed
May 27, 2026
| for i, engine in enumerate(engines): | ||
| # Get array of data from this engine | ||
| engine_data = data[(i)*(len(benches)):(i+1)*(len(benches))].flatten() | ||
| engine_data_stddev = data_stddev[(i)*(len(benches)):(i+1)*(len(benches))].flatten() |
Contributor
There was a problem hiding this comment.
These lines are a lot to chew on. Any combinator (or refactoring) you could use to make them easier to read?
ezrakilty
approved these changes
May 27, 2026
Contributor
ezrakilty
left a comment
There was a problem hiding this comment.
Looks pretty good. I think we'll want to do some refactoring to make this clearer, but it's a great step forward!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.