From f856270cdbf51b45e50c9e8f508d72a9a368f5f0 Mon Sep 17 00:00:00 2001 From: Leonardo Sala Date: Tue, 12 Sep 2017 12:30:35 +0200 Subject: [PATCH] Script execution --- script/TestTimestampTable.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 script/TestTimestampTable.py diff --git a/script/TestTimestampTable.py b/script/TestTimestampTable.py new file mode 100644 index 0000000..07407c4 --- /dev/null +++ b/script/TestTimestampTable.py @@ -0,0 +1,17 @@ +import datetime + + + +def after(rec, scan): + path = get_exec_pars().group+"/time" + if rec.index==0: + create_dataset(path, 's') + time_str = str(datetime.datetime.fromtimestamp(bpm6a.timestamp/1000.0)) + append_dataset(path, time_str , type = 's') + +mscan(bpm6a, bpm6a, 5, after_read = after) +#mscan(bpm6b, bpm6b, 5) + +#tscan(bpm6a, b5, 2.0) + +