-
Notifications
You must be signed in to change notification settings - Fork 125
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
Function to dump observables #58
Comments
Not sure exactly about what you mean. How is this different from what is done for the Cl's in https://cobaya.readthedocs.io/en/latest/cosmo_model.html ? |
You're right it is basically there. I was thinking of a single function that would return the dictionary of requested things (In CosmoMC it also writes them to a file, which can be convenient if e.g testing a setup on a cluster - but I would agree not strictly needed). I guess this can be done indirectly by referencing current_state() but not super intuitive. Adding a function to save dict of the observable to a pickle might however also be useful if we want to support data-variation importance sampling without recomputing observables at some point. Btw, I think in examples we should now use "model.theory" as much more logical than "model.likelihood.theory". |
For testing, it's useful to be able to easily get the observables for a specific model to check all settings are correct and that theory predictions agree with expectations. (equivalent of action=4 and test_output_root in CosmoMC)
The text was updated successfully, but these errors were encountered: