Belle II Software  release-05-01-25
assert_parallel_certificate.py
1 # Test for the parallel certified flag in all modules in the standard L1 trigger simulation.
2 
3 from basf2 import *
4 from L1trigger import add_tsim
5 
6 # Create an empty path
7 path = create_path()
8 
9 # Add only tsim
10 add_tsim(path)
11 
12 # Assert that all modules have a parallel processing certified flag.
13 modules = path.modules()
14 for m in modules:
15  assert m.has_properties(
16  ModulePropFlags.PARALLELPROCESSINGCERTIFIED), '%s is missing c_ParallelProcessingCertified flag!' % (m)