-
Notifications
You must be signed in to change notification settings - Fork 35
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
KeplerCBVCorrector can now take a KeplerLightCurve Object #168
base: master
Are you sure you want to change the base?
Conversation
Travis-CI complains are legit |
pyke/targetpixelfile.py
Outdated
@@ -250,9 +253,9 @@ def centroids(self, aperture_mask='pipeline'): | |||
col_centr, row_centr : tuple | |||
Arrays containing centroids for column and row at each cadence | |||
""" | |||
if aperture_mask == 'pipeline': | |||
if aperture_mask is 'pipeline': |
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.
this is not correct, should be ==
. is
checks if aperture_mask
and 'pipeline'
are the same object
, whereas ==
checks for the value.
pyke/targetpixelfile.py
Outdated
aperture_mask = self.pipeline_mask | ||
elif aperture_mask == 'all': | ||
elif aperture_mask is 'all': |
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.
see above
Fixes an issue with CBVs where you couldn't pass a 'KeplerLightCurve' object.
Now you can pass a 'KeplerLightCurve' object, 'KeplerLightCurveFile' object or a string (as before). This is a bit of a work around and I don't like it. The best fix is to compare time stamps.