Skip to content
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

Fixed trending histogram binning so that bars add up to 1.0 #634

Merged
merged 3 commits into from Mar 9, 2023

Conversation

Skyhawk172
Copy link
Collaborator

The histogram displayed by trending.wfe_histogram_plot was in fact a probability density function and, as a result, the sum of all the histogram bars was not 1.0 since the bin widths were not unity. This behavior is described in the Matplolib documentation. This PR enforces a bin width of 1 nm, which now allows the user to interpret each histogram bar as the fraction of measurements at a given WFE.

Also includes other minor display convenience fixes.

Copy link
Collaborator

@obi-wan76 obi-wan76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Skyhawk172 Skyhawk172 requested review from mperrin and removed request for mperrin January 9, 2023 19:06
@Skyhawk172 Skyhawk172 removed the request for review from mperrin March 9, 2023 15:42
@obi-wan76
Copy link
Collaborator

FYI. Just for the sake of tracking.
@BradleySappington this PR from Charles has been reviewed by me and it is ready to merge.
Thanks!

@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

❗ No coverage uploaded for pull request base (develop@2fe378f). Click here to learn what that means.
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #634   +/-   ##
==========================================
  Coverage           ?   56.11%           
==========================================
  Files              ?       14           
  Lines              ?     6014           
  Branches           ?        0           
==========================================
  Hits               ?     3375           
  Misses             ?     2639           
  Partials           ?        0           
Impacted Files Coverage Δ
webbpsf/trending.py 5.20% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BradleySappington BradleySappington merged commit 0cf8d00 into spacetelescope:develop Mar 9, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants