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

Mutliple runs of sample_flare_recovery should be added to the same output file. #53

Closed ekaterinailin closed 4 years ago

ekaterinailin commented 4 years ago

What needs to be created or improved?

If I run flc.sample_flare_recovery() multiple times, append results to the file instead of overwriting it.

Can you provide an example?

with open('my_csv.csv', 'a') as f:
    df.to_csv(f, header=False)

What is the goal / expected behaviour?

If the file does not exist, also set header=True.

ekaterinailin commented 4 years ago

Implemented and tested with default options.