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
11
import
basf2
as
b2
12
from
L1trigger
import
add_trigger_simulation
13
14
# Create an empty path
15
path = b2.create_path()
16
17
# Add only L1 trigger simulation
18
add_trigger_simulation(path)
19
20
# Assert that all modules have a parallel processing certified flag.
21
modules = path.modules()
22
for
m
in
modules:
23
assert
m.has_properties(
24
b2.ModulePropFlags.PARALLELPROCESSINGCERTIFIED), f
'{m} is missing c_ParallelProcessingCertified flag!'
trg
tests
assert_parallel_certificate.py
Generated on Tue Nov 12 2024 03:02:09 for Belle II Software by
1.9.6