Belle II Software
development
test_print_module_parameters.py
1
8
9
'''
10
Print the parameters of all the modules registered in basf2.
11
'''
12
13
import
basf2
14
import
b2test_utils
15
import
pybasf2
16
17
18
if
__name__ ==
"__main__"
:
19
20
with
b2test_utils.clean_working_directory
():
21
with
b2test_utils.show_only_errors
():
22
23
# Get all the modules (this is a dictionary: module name and shared object)
24
all_modules = pybasf2.list_available_modules()
25
26
# Create a path and add all the modules to the path
27
path = basf2.Path()
28
for
m, so
in
all_modules.items():
29
path.add_module(m)
30
31
# And print the path: this automatically prints also the module parameters
32
basf2.print_path(path)
b2test_utils.clean_working_directory
def clean_working_directory()
Definition:
__init__.py:189
b2test_utils.show_only_errors
def show_only_errors()
Definition:
__init__.py:94
framework
tests
test_print_module_parameters.py
Generated on Fri Nov 8 2024 02:38:06 for Belle II Software by
1.9.6