upload_plan.py 252 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
8
9
10
11
from csst_dag import DFS
from csst_dfs_client import plan
import argparse
import sys
import os

plan_path = sys.argv[1]
assert os.path.exists(plan_path), f"Plan file {plan_path} does not exist"

res = plan.write_file(local_file="plan.json")
print(res)