lightning_template.utils.cli.argument_parsers.json_file_action#
Module Contents#
Classes#
Action to indicate that an argument is a configuration file or a configuration |
- class lightning_template.utils.cli.argument_parsers.json_file_action.ActionJsonFile(**kwargs)#
Bases:
jsonargparse.actions.Action,jsonargparse.actions.FilesCompleterMethodAction to indicate that an argument is a configuration file or a configuration string in json format.
- __call__(parser, cfg, values, option_string=None)#
Parses the given configuration and adds all the corresponding keys to the namespace.
- Raises:
TypeError – If there are problems parsing the configuration.
- static apply_config(parser, cfg, dest, value) None#