From f21e1ff3a9d42cbc06d154357258d0621cb100fd Mon Sep 17 00:00:00 2001 From: Leonardo Sala Date: Wed, 13 Sep 2017 16:37:43 +0200 Subject: [PATCH] Script execution --- script/TestTimestampTable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/TestTimestampTable.py b/script/TestTimestampTable.py index 1567f2c..99efd97 100644 --- a/script/TestTimestampTable.py +++ b/script/TestTimestampTable.py @@ -7,10 +7,10 @@ def after(rec, scan): path = get_exec_pars().group+"/TimeIOC" if rec.index==0: create_dataset(path, 's') - time_str = str(datetime.datetime.fromtimestamp(cache.nanos/1e9)) + time_str = str(datetime.datetime.fromtimestamp(cache.nanos/1000000000)) append_dataset(path, time_str , type = 's') -mscan(bpm6a, bpm6a, -1, 1000.0, after_read = after) +mscan(bpm6a, bpm6a, -1, 10.0, after_read = after) #mscan(bpm6b, bpm6b, 5) #tscan(bpm6a, b5, 2.0)