Skip to content

Failure for lightcurves with gaps #8

Description

@philastrophist

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions