def parse_custom_args(): ARGPARSER.description = USAGE ARGPARSER.add_argument('--rev', dest='revision', help='Fast Downward revision or "baseline". If omitted use current revision.') ARGPARSER.add_argument('--test', choices=['nightly', 'weekly'], default='nightly', help='Select whether "nightly" or "weekly" tests should be run.') return ARGPARSER.parse_args()
def parse_custom_args(): ARGPARSER.description = USAGE ARGPARSER.add_argument('--rev', dest='revision', help='Fast Downward revision or "baseline". If omitted use current revision.') ARGPARSER.add_argument('--test', choices=['nightly', 'weekly'], default='nightly', help='Select whether "nightly" or "weekly" tests should be run.') return ARGPARSER.parse_args()
def parse_args(): ARGPARSER.add_argument("--tex", action="store_true", help="produce LaTeX output") ARGPARSER.add_argument("--relative", action="store_true", help="make relative scatter plots") return ARGPARSER.parse_args()
def parse_args(): ARGPARSER.add_argument( "--test", choices=["yes", "no", "auto"], default="auto", dest="test_run", help="test experiment locally on a small suite if --test=yes or " "--test=auto and we are not on a cluster") return ARGPARSER.parse_args()
def parse_args(): ARGPARSER.add_argument( "--test", choices=["yes", "no", "auto"], default="auto", dest="test_run", help="test experiment locally on a small suite if --test=yes or " "--test=auto and we are not on a cluster") return ARGPARSER.parse_args()
LOG_PARSER = 'parser/lab_parser.py' CWD = dirname(realpath(__file__)) CLR_TMP_PATH = join(CWD, Path('clear_tmp.sh')) # Define path and local system parameters NODE = platform.node() REMOTE = None #NODE.endswith( ".unimelb.edu.au") SCRIPT_DIR = dirname(abspath(__file__)) #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx# #---- PARSE COMMAND-LINE ARGS -------------------------------------------------# with open(join(CWD, Path(CONFIG_FILE)), 'r') as fc_p: config = YAML(typ='safe').load(fc_p) ARGPARSER.add_argument('--SOLVERS', nargs='+', action='store', default=[join(CWD, Path(x)) for x in config['SOLVERS']], required=False, help='USAGE: --SOLVERS\ "<PATH-to-solver> <args>" "solver2 <args>"...') ARGPARSER.add_argument('--NUM_PROC', nargs='?', type=int, action='store', default=int(config['NUM_PROC']) if config['NUM_PROC'] else cpu_count(), help='number of processors') ARGPARSER.add_argument('--PLIST_YML', action='store', default=join(CWD, Path(config['PLIST_YML'])), nargs='?', help='yaml file with list of problems,\ check "example.json"') ARGPARSER.add_argument('--BNAME', nargs='*', action='store', default=config['BNAME'], help='benchmark dir-name') ARGPARSER.add_argument('--DNAME', nargs='*', action='store', default=config['DNAME'], help='domain name') ARGPARSER.add_argument('--PNAME', nargs='*', action='store', default=config['PNAME'], help='problem name') ARGPARSER.add_argument('--PLAN_FILE', nargs='*', action='store', default=config['PLAN_FILE'], help='domain name')