Exemplo n.º 1
0
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()
Exemplo n.º 3
0
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()
Exemplo n.º 4
0
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()
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')
ARGPARSER.add_argument('--TAGS', nargs='*', action='store', 
        default=config['TAGS'], help='domain name')
ARGPARSER.add_argument('--VALIDATE', nargs='?', action='store', 
        default=join(CWD, Path(config['VALIDATE'])), 
        help='Path to validate executable')
ARGPARSER.add_argument('--EXP_DIR', nargs='?', action='store', 
        default=join(CWD, Path(config['EXP_DIR'])), 
        help='path to directory to store results')
ARGPARSER.add_argument('--EXP_NAME', nargs='?', action='store', 
        default=config['EXP_NAME'], help='path to directory to store results')
# Parse the arguments
args = ARGPARSER.parse_args()
args.TIME_LIMIT      =   config['TIME_LIMIT']   # seconds
args.MEMORY_LIMIT      =   config['MEMORY_LIMIT']   # seconds

#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#

#---- SETUP EXPERIMENT -------------------------------------------------------#

# Setup local/remote environment
if REMOTE:
    ENV = None #To be use later for HPC infrastructure
else:
    # NOTE: if "processes = NUM_PROCESSES" is omitted, then default is #CPUs
    ENV = LocalEnvironment(processes=args.NUM_PROC)

exp =   Experiment(path=join(args.EXP_DIR, "results"), environment=ENV)