hippke / Pandora

A fast transit-fitting algorithm to search for transits of exomoons
GNU General Public License v3.0
20 stars 4 forks source link

Speed issue: Lightkurve / add warning if user provides data format other than array of floats #49

Open hippke opened 1 year ago

hippke commented 1 year ago

e.g. Lightkurve quantity is converted automatically, but then performance is 10x slower

hippke commented 1 year ago
if not isinstance(flux, np.ndarray):
    print("Provided flux array is not a numpy array. This may slow down nested sampling considerably. Please consider converting the array: flux = nparray(flux)")