ScanPrinter prints last point twice
under some conditions the last point of a scan is printed twice:
e.g. in the flint test-session (bliss -s flint
)
FLINT [1]: ascan(roby,0,5,5,.1,simu1.counters.realtime_det0)
Total 5 points, 0:00:01.693923 (motion: 0:00:01.193923, count: 0:00:00.500000)
Scan 9 Mon Apr 08 16:30:44 2019 /tmp/scans/flint/data.h5 flint user = pithan
ascan roby 0 5 5 0.1
# dt[s] roby realtime_det0
0 0 0 0.1
1 0.436796 1.25 0.1
2 0.875539 2.5 0.1
3 1.3149 3.75 0.1
4 1.75325 5 0.1
5 1.75325 5 0.1
interestingly this is not the case for a diode in the test_session
TEST_SESSION [2]: ascan(roby,0,5,5,.1,diode)
Total 5 points, 0:00:01.693923 (motion: 0:00:01.193923, count: 0:00:00.500000)
Scan 9 Mon Apr 08 16:33:43 2019 /tmp/scans/test_session/data.h5 test_session user = pithan
ascan roby 0 5 5 0.1
# dt[s] roby diode
0 0 0 23.3333
1 0.241958 1.25 -15.6667
2 0.482922 2.5 -15
3 0.720852 3.75 -2
4 0.965822 5 -15.6667