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

[WIP]: Lightcurve Periodogram #162

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

Conversation

christinahedges
Copy link

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.

self.flux = self.flux[ok]
self.flux_err = self.flux_err[ok]

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

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

sorted_args = np.argsort(fold_time)
return LightCurve(fold_time[sorted_args], self.flux[sorted_args])
def to_csv(self):
raise NotImplementedError()
Copy link
Member

Choose a reason for hiding this comment

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

same here


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