Skip to content

KeplerCBVCorrector can now take a KeplerLightCurve Object#168

Open
christinahedges wants to merge 7 commits into
KeplerGO:masterfrom
christinahedges:cbv-fixes
Open

KeplerCBVCorrector can now take a KeplerLightCurve Object#168
christinahedges wants to merge 7 commits into
KeplerGO:masterfrom
christinahedges:cbv-fixes

Conversation

@christinahedges

Copy link
Copy Markdown

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

mirca commented Jan 4, 2018

Copy link
Copy Markdown
Member

Travis-CI complains are legit

Comment thread pyke/targetpixelfile.py Outdated
Arrays containing centroids for column and row at each cadence
"""
if aperture_mask == 'pipeline':
if aperture_mask is 'pipeline':

@mirca mirca Jan 4, 2018

Copy link
Copy Markdown
Member

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.

Comment thread pyke/targetpixelfile.py Outdated
if aperture_mask is 'pipeline':
aperture_mask = self.pipeline_mask
elif aperture_mask == 'all':
elif aperture_mask is 'all':

Copy link
Copy Markdown
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