j-faria / kima

Exoplanet detection in RVs with DNest4 and GPs
http://www.kima.science
MIT License
15 stars 10 forks source link

Model setup is not saved in the right place #46

Open j-faria opened 6 years ago

j-faria commented 6 years ago

The kima_model_setup.txt file is not always saved in the right directory. It is always created in the current directory, but it should instead be created in the same directory as sample.options.sample_file.

@eggplantbren, any idea how to access that directory from within the RVmodel methods?

eggplantbren commented 6 years ago

The easiest way is probably to get one of the filenames from the Options object and extract its path. But that's slightly unsatisfactory because it means different output filenames are treated differently, and that's awkward. Ultimately I think it's probably best to have output filenames and the output directory specified separately.