openghg / openghg_inversions

University of Bristol Atmospheric Chemistry Research Group RHIME Inversion code (with openghg dependency)
MIT License
5 stars 0 forks source link

Improve handling of extra arguments (e.g. from ini files) #106

Open brendan-m-murphy opened 2 months ago

brendan-m-murphy commented 2 months ago

Scikit learn has a system where keywords are prepended with the name of the function that they should be passed to.

We could probably implement this using the sections in the ini files. E.g. infer_pymc__nuts_sampler = "numpyro" would pass nuts_sampler = "numpyro" to infer_pymc, and the prefix could be added from the section via

[infer_pymc]
nuts_sampler = True

The existing system works, but we need to manually pass parameters to the right locations after they are given to fixedbasisMCMC.