-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitialise.py
19 lines (14 loc) · 855 Bytes
/
initialise.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import argparse
from pathlib import Path
parser = argparse.ArgumentParser(allow_abbrev=False)
parser.add_argument("-nn", "--run-number", required=False, default=None, type=int)
parser.add_argument("-mm", "--model-version", required=False, default=None, type=int)
parser.add_argument("-yy", "--memory-version", required=False, default=None, type=int)
parser.add_argument("--run-folder", required=False, default=Path('D:/Connect4/run/'), type=Path)
parser.add_argument("--run-archive-folder", required=False, default=Path('D:/Connect4/run_archive/'), type=Path)
args, _ = parser.parse_known_args()
INITIAL_RUN_NUMBER = args.run_number if args.run_number is not None else args.memory_version
INITIAL_MODEL_VERSION = args.model_version
INITIAL_MEMORY_VERSION = args.memory_version
run_folder = args.run_folder
run_archive_folder = args.run_archive_folder