-
Notifications
You must be signed in to change notification settings - Fork 62
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
Additional fixes to trending.py #688
Additional fixes to trending.py #688
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #688 +/- ##
===========================================
- Coverage 55.20% 54.75% -0.45%
===========================================
Files 16 16
Lines 6380 6436 +56
===========================================
+ Hits 3522 3524 +2
- Misses 2858 2912 +54
☔ View full report in Codecov by Sentry. |
Tests are failing because the last commit requires the import of astroquery
|
@Skyhawk172 as you work on this, can you also include #677 in this PR? We can iterate on what makes more sense in the trending figure. |
Already done, along with #683. |
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.
The code itself looks fine. I do see a lot of magic numbers in there without comments explaining why that specific number is chosen. You can also "duck type" the numbers as implied constants (all caps) and give them meaningful names to make the calculations more legible. Lots of these numbers happen with the offsets calculations, and set_ylim
/get_ylim
.
These changes aren't necessary, but make reviews easier and the code more legible/maintanable. I'll approve and leave it up to you if you'd like to change.
4e33479
to
c1aa7e1
Compare
Looks like #690 should fix these failing tests |
@Skyhawk172, would you please do another rebase to verify all tests pass? Need #704 |
I merged the latest develop branch, including #704, and only the Sphinx doc build is reporting errors now. |
…th astroquery dep.
This PR was closed but not merged. I reopened it so I could merge the latest develop with #708, which should fix the Sphinx test. Then it'll be good to merge. |
34ba8fc
into
spacetelescope:develop
There are multiple fixes folded into this PR, all related to our trending plots.
I noticed an issue in
webbpsf.trending.wfe_histogram_plot
when plotting arrows, where the original hardcoded offset does not scale properly when theylimits
change (say, when we change the start and end dates). See screenshot:This PR addresses this issue for any
ylimits,
as demonstrated below. The correction arrows now go from the edge of the two connecting points, without overlapping with the points:There are also a few additional fixes that I've stumbled upon over the last months.