-
Notifications
You must be signed in to change notification settings - Fork 9
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
Prevent duplicate sub-interval data labels #120
Prevent duplicate sub-interval data labels #120
Conversation
db6f2db
to
72927e3
Compare
It looks like lighkurve is calling functions in oktopus, which depends on autograd, which is no longer maintained. This was causing a test failure. |
fa33ad6
to
09c9d24
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
==========================================
- Coverage 93.92% 91.33% -2.60%
==========================================
Files 37 41 +4
Lines 1598 2055 +457
==========================================
+ Hits 1501 1877 +376
- Misses 97 178 +81 ☔ View full report in Codecov by Sentry. |
The other option would be to just not append at all if manually passing a data label - can you think of a case where providing a data label would still want the quarter/whatever automatically appended? |
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.
Thanks!
@@ -24,6 +24,7 @@ dependencies = [ | |||
# to devdeps in tox.ini | |||
"jdaviz>=3.10.2,<3.11", | |||
"lightkurve>=2.4.1", | |||
"numpy<2", |
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.
backported in #126
If you load Kepler data from Quarter 10 with a
data_label = "Target in Q10"
, the parser will happily add another "Q10" to the end of the data label 🐱. This PR checks if the sub-interval for any mission is already in the data label, and only adds one if none is found.