Belle II Software development
assert_parallel_certificate.py
1
8
9# Test for the parallel certified flag in all modules in the standard L1 trigger simulation.
10
11import basf2 as b2
12from L1trigger import add_trigger_simulation
13
14# Create an empty path
15path = b2.create_path()
16
17# Add only L1 trigger simulation
18add_trigger_simulation(path)
19
20# Assert that all modules have a parallel processing certified flag.
21modules = path.modules()
22for m in modules:
23 assert m.has_properties(
24 b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED), f'{m} is missing c_ParallelProcessingCertified flag!'