PolyChord / PolyChordLite

Public version of PolyChord: See polychord.co.uk for PolyChordPro
https://polychord.io/
Other
83 stars 26 forks source link

Feature Request: A congruent settings interface #47

Open appetrosyan opened 4 years ago

appetrosyan commented 4 years ago

Right now there are no reasons why the settings file couldn't be a dictionary, so we can either extend the functionality of the settings file, or phase it out and move the logic into the function that actually uses it.

Proposal 1: Add functions that load the settings file from other formats, allow serialising and de-serialising in a consistent manner, as well as adding the option to add the prior quantile or the log-likelihood at the stage of creating the settings object.

Pros:

Cons: It's bloat.

Proposal 2: Remove the settings object entirely. Instead, provide all the validation as part of keyword arguments of the run_polychord method. The settings object essentially reduces to a dictionary.

Pros:

Cons: Duplicated error checking. More code in the run_polychord() function.