LSSTDESC / firecrown

DESC Cosmology Likelihood Framework
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

Separating the cluster theory and models from Firecrown into an independent module. #345

Closed mattkwiecien closed 9 months ago

mattkwiecien commented 10 months ago

Summary

Changeset to separate the cluster theory and models logic from the internal workings of Firecrown. As an added bonus, also updated the binned cluster number counts likelihood statistic to use ModelingTools in the expected firecrown workflow.

Cluster module

Cluster likelihood factory function

Modified the cluster likelihood to use dependency injection for all of the choices for our likelihood. Or in other words, moved all of the specific choices (integrator, cluster kernel ingredients, data vector) to the top of the call stack, so the user can swap in and out components to the likelihood.

Other firecrown changes

Tests