ecpi.common.params.tools_check module
Section author: ECLAIRs GP team
Parameters conversion and verification with a json schema
Summary
Functions:
Check dictionary d_pars with schema json, addition of default parameters for missing parameters |
|
Open json schema file and check dictionary d_pars, addition of default parameters for missing parameters |
|
https://python-jsonschema.readthedocs.io/en/stable/faq/ for more informations |
Reference
- check_add_default_dict(schema, d_pars)[source]
Check dictionary d_pars with schema json, addition of default parameters for missing parameters
- Parameters
schema (dict) – json schema as dictionary
d_pars (dict) – dictionary of typed parameters
- check_add_default_file(file_schema, d_pars)[source]
Open json schema file and check dictionary d_pars, addition of default parameters for missing parameters
- Parameters
file_schema (str) – path and name of json schema file
d_pars (dict) – dictionary of typed parameters
- extend_with_default(validator_class)[source]
https://python-jsonschema.readthedocs.io/en/stable/faq/ for more informations