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

Add option: passing splits to find_gaps does not override minspan or maxgap #60

Open ekaterinailin opened 4 years ago

ekaterinailin commented 4 years ago

If you pass a list of split values to FlarelightCurve.find_gap, the resulting gaps will no longer conform to the minspan and maxgap requirements.

What needs to be created or improved?

Add another keyword argument to find_gaps that will check minspan and maxgap criteria after adding the extra splits.

Can you provide an example?

flc.find_gaps(splits=[<some list>], override_minspan_maxgap=<True or False>)