예제 #1
0
def common_parser(parser):

    parser.add_argument("--config_file", dest='config_file', type=str,
                        default=os.path.join(file_path, 'tc1_default_model.txt'),
                        help="specify model configuration file")

    # Parse has been split between arguments that are common with the default neon parser
    # and all the other options
    parser = p1_common.get_default_neon_parse(parser)
    parser = p1_common.get_p1_common_parser(parser)

    return parser
예제 #2
0
def get_p1b1_parser():

    # Construct neon arg parser. It generates a large set of options by default
    parser = NeonArgparser(__doc__)
    # Specify the default config_file
    parser.add_argument("--config_file",
                        dest='config_file',
                        type=str,
                        default=os.path.join(p1b1.file_path,
                                             'p1b1_default_model.txt'),
                        help="specify model configuration file")

    # Parse other options that are not included on neon arg parser
    parser = p1_common.get_p1_common_parser(parser)

    return parser