Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

christinahedges
Copy link

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.

@mirca
Copy link
Member

mirca commented Jan 4, 2018

Travis-CI complains are legit

@@ -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':
Copy link
Member

@mirca mirca Jan 4, 2018

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.

aperture_mask = self.pipeline_mask
elif aperture_mask == 'all':
elif aperture_mask is 'all':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants