watch_session_scans can't deal with acquisition of parallel scans
If 2 scans are cquiring data in parallel, if i am not wrong, watch_session_scans
can send a new_scan_data
with the wrong scan_info
.
As result it is not possible to filter the events.
Here is a basic example from @pithan
TEST_SESSION [18]: def bla():
...: s1= loopscan(100,.1,diode,run=False)
...: s2= ascan(robz,0,1,100,.1,sim_ct_gauss,run=False)
...: g1=gevent.spawn(s1.run)
...: g2=gevent.spawn(s2.run)
...: gevent.joinall([g1,g2])
And here you can see that the sim_ct_gauss
channel is part of the channels emitted with the scan_info
(here the node_name
is displayed) from the loopscan
.
test_session:tmp:scans:299_loopscan
dict_keys(['timer:elapsed_time',
'timer:epoch',
'simulation_diode_controller:diode',
'axis:robz',
'sim_ct_gauss'])