-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for passing sacc data to load_likelihood
and build_likelihood
#394
Comments
To explain a bit further: blinding will run as a part of a data-vector measurement pipeline. The blinding library needs to call the theory-vector calculation from the firecrown likelihood that will be used in the cosmological inference to ensure consistency. This likelihood must be build with different data-vectors as the blinding is a part of a the data-vector calculation pipeline. We also have a requirement to blind sacc files directly. In both cases, we need to be able to pass different sacc objects to the At the moment, there's a Does that make sense? |
I found this trick here based on what is done for TXPipe and adapted the cosmic shear firecrown example to it: How much of a bad idea is this? If this is the proper way of passing a sacc file to a likelihood, potentially would be good (if possible) to fix this to the likelihood data-model such that we impose this method exists and so every built likelihood is compatible with blinding. If not possible, I will just make sure to document this method in the documentation on how to build likelihoods that can be used with the blinding library 😄 |
@marcpaterno @vitenti happy to help pushing development here... how do you recommend we tackle this? It will also be important for new developments planned for Augur |
For blinding (@arthurmloureiro) we need to be able to pass sacc objects to the likelihood creation entry point. At the moment,
load_likelihood
andbuild_likelihood
expect aNamedParameters
argument. This precludes passing a sacc object (as opposed to a filename string) and also gives no indication if thebuild_likelihood
implementation actually looks for a sacc object or file in thebuild_parameters
argument.A possible solution would be to add an optional
sacc_data
keyword argument toload_likelihood
that gets passed tobuild_likelihood
. If the latter doesn't implement this argument, it will cause an error, which informs the caller that the likelihood factory doesn't support external sacc files.sacc_data
could be either a string orSacc
object and it would be up to the likelihood factory to deal with this.The text was updated successfully, but these errors were encountered: