demo_facility_observation.py 439 Bytes
Newer Older
Wei Shoulin's avatar
demo  
Wei Shoulin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

from csst_dfs_api.facility.observation import ObservationApi

api = ObservationApi()

#find 
recs = api.find(module_id="MSC",limit = 0)
print('find:', recs)

# get
rec = api.get(obs_id=17)
print('get:', rec)

# update_proc_status
rec = api.update_proc_status(obs_id = 17, status = 3,)
print('update_proc_status:', rec)

# update_qc0_status
rec = api.update_qc0_status(obs_id = 17, status = 3,)
print('update_qc0_status:', rec)