demo_facility_observation.py 455 Bytes
Newer Older
Wei Shoulin's avatar
demo  
Wei Shoulin committed
1
2
3
4
5
6

from csst_dfs_api.facility.observation import ObservationApi

api = ObservationApi()

#find 
Wei Shoulin's avatar
test    
Wei Shoulin committed
7
recs = api.find(module_id="MSC",limit = 0, prc_status =-1)
Wei Shoulin's avatar
demo  
Wei Shoulin committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)