cgarling / StarFormationHistories.jl

Fitting astrophysical star formation histories via CMD modelling.
MIT License
3 stars 0 forks source link

Add special return types for `fit_templates` and `fit_templates_mdf` #11

Closed cgarling closed 1 year ago

cgarling commented 1 year ago

Instead of simply returning a NamedTuple containing NamedTuples, these methods now return NamedTuples (with keys result.mle and result.map) where the enclosed objects are custom structs that support random sampling from the posterior / likelihood approximation as rand(result.map, 10) for example.