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

k2sc example fails to run #26

Open
gjtucson opened this issue May 4, 2020 · 4 comments
Open

k2sc example fails to run #26

gjtucson opened this issue May 4, 2020 · 4 comments

Comments

@gjtucson
Copy link

gjtucson commented May 4, 2020

Hi folks,

I am trying to use the k2sc code for Kepler K2 data. I've run into a couple of issues for which I hope you can direct me back to the right path.

To get started, I am trying to run the example notebook at:

https://github.com/OxES/k2sc/blob/master/notebooks/lightkurve.ipynb

I've had to make a change for the current version of lightkurve, in that KeplerTargetPixelFile.from.archive is not available, so I switched to search_targetpixelfile, and I specify (cadence='long', mission='K2').

Then I can get a tpf returned and the image looks exactly like the one in the example.

However, the lc.flux plot looks a bit different, which may be ok, but suspicious. Interestingly, when I look at the FITS header in the example, it shows as campaign 6 (correct). The output for the command:

lc.k2sc()

though, prints "Using default splits [2344] for campaign 5. Where did campaign 5 come from, and is that an issue?

Then k2sc iterates for 103 times and eventually completes. When I run the code, lc.k2sc() uses splits for campaign 6 (which seems right), iterates 37 times, and subsequently dies after:

"Starting final outlier detection" in "detrend".

Any suggestions would be great!

George Jacoby
jacoby@noao.edu

@benjaminpope
Copy link
Contributor

Hi George,

Try cloning the latest version from GitHub - and can you post your exact notebook commands and outputs?

All the best,

Ben

@gjtucson
Copy link
Author

gjtucson commented May 5, 2020 via email

@benjaminpope
Copy link
Contributor

Hi George,

Either

pip install k2sc

again, as I have updated the PyPI distribution now, or if doing it from the GitHub, use

python setup.py install

All the best,

Ben

@gjtucson
Copy link
Author

gjtucson commented May 5, 2020 via email

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