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

Failure for lightcurves with gaps #8

Open
philastrophist opened this issue Oct 8, 2019 · 3 comments
Open

Failure for lightcurves with gaps #8

philastrophist opened this issue Oct 8, 2019 · 3 comments

Comments

@philastrophist
Copy link

I've run Kali with a reprocessed light curve from Smith+18 and it fails with error:

https://gist.github.com/philastrophist/02a1444ab8a51f29e37481f7b40650ea

notice: kali tools have been set up.
/opt/conda/lib/python2.7/site-packages/numpy/lib/nanfunctions.py:1628: RuntimeWarning: Degrees of freedom <= 0 for slice.
  keepdims=keepdims)
Traceback (most recent call last):
  File "/project/smith18_data/fit_carma.py", line 82, in <module>
    task.fit(lc)
  File "/home/kali/python/kali/carma.py", line 1048, in fit
    self.bestTheta
  File "/home/kali/python/kali/carma.py", line 1058, in bestTheta
    bestWalker = np.where(np.max(self.LnPosterior) == self.LnPosterior)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0

Is this because there are gaps? If so, then how does the SDSS lightcurve in your guide/introduction.ipynb work?

Thanks

@AstroVPK
Copy link
Owner

AstroVPK commented Oct 8, 2019 via email

@philastrophist
Copy link
Author

Ok, thanks!

@philastrophist
Copy link
Author

Ok, it runs now and returns some results!

However, they look a bit weird: The psd doesn't really track the data that well and nor does the SF.
Have a look at the pdf in the gist if you can. Is it expected to be like this? I know that at the high freq end we're observationally limited so that could explain the PSD but not the SF! I'd been interested to know what you think...
Thanks for your help

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

No branches or pull requests

2 participants