-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add method for creating lightcurve for object #464
Add method for creating lightcurve for object #464
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
==========================================
+ Coverage 80.30% 80.53% +0.23%
==========================================
Files 30 31 +1
Lines 3945 3987 +42
==========================================
+ Hits 3168 3211 +43
+ Misses 777 776 -1 ☔ 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.
Seems reasonable overall. The tests looked reasonable as well (I mean, you are just checking the right number of rows are in the final light curve).
@@ -193,5 +194,7 @@ filterwarnings = [ | |||
# papermill is using deprecated jupyter paths | |||
'ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning', | |||
# papermill is also using a deprecated method of getting current time | |||
'ignore:.*is deprecated and scheduled for removal.*:DeprecationWarning' | |||
'ignore:.*is deprecated and scheduled for removal.*:DeprecationWarning', |
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.
I don't know how happy I am with ignoring this warning, given the warning includes "scheduled for removal". :/
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.
Totally agree, but also can't control 😬
@JuanCab what do you think about this 👆 |
Yeah, I don't know if the technical term for this is API (we aren't connecting different programs together via some server/client interface), BUT I do think it make sense to have a single required argument, especially if the only difference is the data type. |
Merging, since the new signature matches the proposal above (darn you for learning what things like API actually mean 😉 ) and test coverage is 100% and tests are passing. |
This fixes #462 by adding a
lightcurve_for
method toPhotometryData
.A couple items:
star_id
, a coordinate or a name. If that is better, then we might need to drop the name option, because star_id is a string so I'm not sure how to distinguish between star_id and name.