-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor and adding filters. #71
Conversation
Fixed a typo on AdlerPlanetoid.populate_observations() that was causing observations_by_filter[0].filter_name to show up as "filter" rather than the actual filter name string. |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
- Coverage 72.13% 69.84% -2.29%
==========================================
Files 3 3
Lines 61 63 +2
==========================================
Hits 44 44
- Misses 17 19 +2 ☔ View full report in Codecov by Sentry. |
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.
Following from me playing around with the new AdlerPlanetoid and our quick chat, it would be useful to be able to retrieve a given filter from a planetoid object containing many filters. Something like:
obs_r = planetoid.observations_in_filter("r")
obs_r.mag
This would address the issue of having the user look up which index to use for a given filter_list (noting that the index would change if filter_list ever changes)
Done. As we discussed earlier, it's probably also a good idea to have something like this for the AdlerData class to retrieve parameters by model/filter. Made an issue for that: #74. |
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.
Awesome, that's exactly what I wanted!
@mschwamb would you like to look at this or shall I go ahead and merge? |
If Jamie is happy, I am happy |
Code refactor:
Fixes #37.
Fixes #66.
Review Checklist for Source Code Changes