filter in bliss.data.node.walk does not fully work for scan_group
even with the filter set to scan_group
we still see events of scan
BLISS [24]: def mylistener(session_name):
...: for event_type, node, event_data in get_session_node(session_name).iterator.walk_on_new_events(filter='scan_group'):
...: print("Found new sequence node: " , node.db_name,node.info["scan_nb"],node.type)
...: if event_type == EventType.NEW_NODE:
...: print(f"-> start of {node.db_name}")
...: if event_type == EventType.END_SCAN:
...: print(f"-> end of {node.db_name}" )
BLISS [25]: mylistener("test_session")
Found new sequence node: test_session:tmp:scans:40_sequence_of_scans 40 scan_group
-> start of test_session:tmp:scans:40_sequence_of_scans
Found new sequence node: test_session:tmp:scans:41_loopscan 41 scan
-> end of test_session:tmp:scans:41_loopscan
Found new sequence node: test_session:tmp:scans:42_loopscan 42 scan
-> end of test_session:tmp:scans:42_loopscan
Found new sequence node: test_session:tmp:scans:43_loopscan 43 scan
-> end of test_session:tmp:scans:43_loopscan
Found new sequence node: test_session:tmp:scans:40_sequence_of_scans 40 scan_group
-> end of test_session:tmp:scans:40_sequence_of_scans
^[[A^[[B^[[B^C
BLISS [26]: def mylistener(session_name):
...: for event_type, node, event_data in get_session_node(session_name).iterator.walk_on_new_events(filter='scan'):
...: print("Found new sequence node: " , node.db_name,node.info["scan_nb"],node.type)
...: if event_type == EventType.NEW_NODE:
...: print(f"-> start of {node.db_name}")
...: if event_type == EventType.END_SCAN:
...: print(f"-> end of {node.db_name}" )
BLISS [27]: mylistener("test_session")
Found new sequence node: test_session:tmp:scans:45_loopscan 45 scan
-> start of test_session:tmp:scans:45_loopscan
Found new sequence node: test_session:tmp:scans:45_loopscan 45 scan
-> end of test_session:tmp:scans:45_loopscan
Found new sequence node: test_session:tmp:scans:46_loopscan 46 scan
-> start of test_session:tmp:scans:46_loopscan
Found new sequence node: test_session:tmp:scans:46_loopscan 46 scan
-> end of test_session:tmp:scans:46_loopscan
Found new sequence node: test_session:tmp:scans:47_loopscan 47 scan
-> start of test_session:tmp:scans:47_loopscan
Found new sequence node: test_session:tmp:scans:47_loopscan 47 scan
-> end of test_session:tmp:scans:47_loopscan
Found new sequence node: test_session:tmp:scans:44_sequence_of_scans 44 scan_group
-> end of test_session:tmp:scans:44_sequence_of_scans