-
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
[WIP]: Lightcurve Periodogram #162
base: master
Are you sure you want to change the base?
[WIP]: Lightcurve Periodogram #162
Conversation
self.flux = self.flux[ok] | ||
self.flux_err = self.flux_err[ok] | ||
|
||
def LombScargle(self,samples=40): |
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.
methods name should be lower case
phase : float, optional | ||
Time reference point. | ||
def draw(self): | ||
raise NotImplementedError("Should we implement a LightCurveDrawer class?") |
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.
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() |
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.
same here
|
||
def periodogram(self, minper=None, maxper=None, nterms=1): | ||
""" | ||
Creates a periodogram object |
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.
not sure if that's the best purpose for a method.
maybe we want to implement something more specific?
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.