forked from sinaghiassian/OffpolicyAlgorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
15 lines (13 loc) · 650 Bytes
/
Copy pathmain.py
File metadata and controls
15 lines (13 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os
from Job.JobBuilder import JobBuilder
import argparse
from utils import find_all_experiment_configuration
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
'--directory_or_file', '-f', type=str, help='Json file path or Json files directory', required=True)
parser.add_argument('--server', '-s', type=str, help='Input server name, Cedar or Niagara', required=True)
args = parser.parse_args()
for path in find_all_experiment_configuration(args.directory_or_file):
builder = JobBuilder(json_path=os.path.join(os.getcwd(), path), server_name=args.server)
builder()