-
Notifications
You must be signed in to change notification settings - Fork 0
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
Command Line Interface and main function #40
Conversation
…ary of cosmo params
Implements a Command Line Interface using jsonargparse
The |
@tilmantroester Yes! But it does get a bit confused with the ccl cosmology type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes (but I cannot approve my own PR)
Args: | ||
path_to_sacc (str): Path to the sacc file to blind. | ||
likelihood_path (str): Path to the firecrown likelihood module file. | ||
systematics (dict): Dictionary with fixed values for the firecrown systematics parameters. | ||
shifts_dict (dict): Dictionary with fixed values for the firecrown shifts parameters. | ||
Example: {"Omega_c": (0.20, 0.39), "sigma8": (0.70, 0.90)} | ||
seed (int, str): Seed for the blinding process. Defaults to 2112. | ||
cosmo (Union[CosmologyType, dict]): Cosmology object or dictionary with cosmological parameters you want different than the | ||
VanillaLCDM as reference cosmology. | ||
Defaults to ccl.CosmologyVanillaLCDM(). | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update this part, it is missing some arguments
This PR introduces a command line interface to conceal sacc data-vectors directly from the terminal. The method accepts inputs from the command line as well as inputs via a yaml configuration file.
The implementation uses the
jsonargparse
library which supports the following command to get help:or the following command to print an example configuration file:
python -m blinding --print_config > example_config.yml
Smokescreen
class were fixed and unit tests were implemented.CI.yaml
3.0.2
to use the.to_dict()
method.