schrodinger.application.phase.packages.phase_option_utils module¶
Module that provides options parsing functionality.
Copyright Schrodinger LLC, All Rights Reserved.
- schrodinger.application.phase.packages.phase_option_utils.create_argparse_namespace(argv, valid_pos_args, valid_flags, valid_keys)¶
Creates an argparse.Namespace object from command line arguments and known positional arguments and options.
- Parameters
argv – Command line arguments, including program name
valid_pos_args – All recognized positional arguments
valid_flags – All recognized flags
valid_keys – All recognized keys for key,value pairs
- Type
list of str
- Type
list of str
- Type
list of str
- Type
list of str
- Returns
An argument namespace derived from inputs
- Return type
argparse.Namespace
- schrodinger.application.phase.packages.phase_option_utils.parse_shape_screen_options(argv)¶
Creates shape screen argument namespace from command line options.
- Parameters
argv (list of str) – Command line arguments, including program name
- Returns
Argument namespace
- Return type
argparse.Namespace