ekaterinailin / AltaiPony

Find flares in Kepler and TESS light curves. Notebooks for quickstart inside.
https://altaipony.readthedocs.io
MIT License
26 stars 10 forks source link

Can't open downloaded fits file #47

Closed dPulsar closed 4 years ago

dPulsar commented 5 years ago

What needs to be created or improved?

I'm having trouble opening a fits file downloaded from the Kepler database. However, the example fits file that was provided does work.

Can you provide an example?

from altaipony.flarelc import FlareLightCurve
from altaipony.lcio import from_fits_file 
path = "/home/homanj/Documents/Flares/AltaiPony/Flare Data/2/kplr010002792-2009259160929_llc.fits"
flc = from_fits_file(path)

I get an error message that flc.detrended_flux is not a proper input for np.isfinite.

What is the goal / expected behaviour?

I expected that the program would run smoothly. I also copied the code from from_fits_file in altaipony.lcio and ran each of the parts directly, which resulted in the improper input error message for both fits files (the example one and the downloaded one, which is consistent with the above error)

ekaterinailin commented 5 years ago

This should not have been fixed, and now work like this:

from altaipony.lcio import from_path flc = from_path(path, mode="LC", mission="Kepler")

Let me know how that goes and sorry for the long waiting time!

dPulsar commented 4 years ago

Sorry for the late reply. Thanks for your help and I’ll let you know if I run into issues!

J. Homan

On Sep 13, 2019, at 5:08 AM, ekaterinailin notifications@github.com wrote:

This should not have been fixed, and now work like this:

from altaipony.lcio import from_path flc = from_path(path, mode="LC", mission="Kepler")

Let me know how that goes and sorry for the long waiting time!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ekaterinailin commented 4 years ago

Okay, I'll close it for now!