Skip to content

[WIP]: Lightcurve Periodogram#162

Open
christinahedges wants to merge 11 commits into
KeplerGO:masterfrom
christinahedges:lightcurve-periodogram
Open

[WIP]: Lightcurve Periodogram#162
christinahedges wants to merge 11 commits into
KeplerGO:masterfrom
christinahedges:lightcurve-periodogram

Conversation

@christinahedges
Copy link
Copy Markdown

Adding a new class to handle automatic period searching. Currently uses astropy Lomb-Scargle, but will ideally add BLS for automatic planet searching.

Main change in lightcurve is that if no period is passed the best fitting one will automatically be found (same with phase).

WIP, working on unit tests.

Comment thread pyke/periodogram.py
self.flux = self.flux[ok]
self.flux_err = self.flux_err[ok]

def LombScargle(self,samples=40):
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.

methods name should be lower case

Comment thread pyke/lightcurve.py
phase : float, optional
Time reference point.
def draw(self):
raise NotImplementedError("Should we implement a LightCurveDrawer class?")
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.

Not sure why this got readded, you might want to rebase

Comment thread pyke/lightcurve.py
sorted_args = np.argsort(fold_time)
return LightCurve(fold_time[sorted_args], self.flux[sorted_args])
def to_csv(self):
raise NotImplementedError()
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.

same here

Comment thread pyke/lightcurve.py

def periodogram(self, minper=None, maxper=None, nterms=1):
"""
Creates a periodogram object
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.

not sure if that's the best purpose for a method.
maybe we want to implement something more specific?

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