01.2025
This commit is contained in:
11
script/test/DataAPI.py
Normal file
11
script/test/DataAPI.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import ch.psi.utils.DataAPI as DataAPI
|
||||
|
||||
#da = DataAPI("https://data-api.psi.ch/sf")
|
||||
da = DataAPI("https://data-api.psi.ch/sf-databuffer")
|
||||
|
||||
|
||||
ret = da.queryData(["S10BC01-DBLM065:B1_LOSS"], 23251652441, 23251653739)
|
||||
plot([d['value'] for d in ret[0]['data']], xdata=[d['pulseId'] for d in ret[0]['data']])
|
||||
|
||||
ret = da.queryData(["S10BC01-DBLM065:B1_LOSS"], "2025-01-21T16:06:00.000", "2025-01-21T16:06:02.000")
|
||||
plot([d['value'] for d in ret[0]['data']], xdata=[d['pulseId'] for d in ret[0]['data']])
|
||||
Reference in New Issue
Block a user