From 02db98f0f074305e330e73d8ba6d5935e68c88d9 Mon Sep 17 00:00:00 2001 From: Alexandre Gobbo Date: Thu, 4 Apr 2019 10:46:29 +0200 Subject: [PATCH] Script execution --- script/test/TestDataBuffer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/test/TestDataBuffer.py b/script/test/TestDataBuffer.py index a2adb9d..a12ebfd 100644 --- a/script/test/TestDataBuffer.py +++ b/script/test/TestDataBuffer.py @@ -3,5 +3,9 @@ import ch.psi.utils.DataAPI as DataAPI da = DataAPI("https://data-api.psi.ch/sf") ret = da.queryData(["S10BC01-DBLM065:B1_LOSS"], 8291491519L, 8291491619L) +plot([d['value'] for d in ret[0]['data']]) ret = da.queryData(["S10BC01-DBLM065:B1_LOSS"], "2019-04-03T10:00:00.000", "2019-04-03T10:00:02.000") -ret = da.queryData(["S10BC01-DBLM065:B1_LOSS", "S10BC01-DBLM065:LOSS_SIGNAL_RAW"], 8291491519L, 8291491520L) \ No newline at end of file +ret = da.queryData(["S10BC01-DBLM065:B1_LOSS", "S10BC01-DBLM065:LOSS_SIGNAL_RAW"], 8291491519L, 8291491520L) +plot(ret[1]['data'][0]['value']) +plot([d['value'] for d in ret[1]['data']]) +