Belle II Software
light-2406-ragdoll
mva_examples.py
1
#!/usr/bin/env python3
2
# -- analysis/tests/mva_examples.py
3
4
11
12
import
b2test_utils
as
b2tu
13
import
b2test_utils_analysis
as
b2tua
14
15
16
17
18
class
ExamplesTest
(b2tua.ExamplesTest):
19
def
test_mva_examples
(self):
20
"""
21
Test supported mva examples.
22
"""
23
# list of examples that cannot be tested
24
broken_mva_egs = [
'B2A712-DeepContinuumSuppression_MVATrain.py'
,
# training takes too long and cannot be shortened
25
'B2A713-DeepContinuumSuppression_MVAExpert.py'
,
# requires weight file created in previous example
26
'B2A714-DeepContinuumSuppression_MVAModel.py'
# MVA model description and not standalone example script
27
]
28
29
self._test_examples_dir(
'analysis/examples/mva/'
, broken_mva_egs)
30
31
32
if
__name__ ==
'__main__'
:
33
with
b2tu.clean_working_directory():
34
b2tua.unittest.main()
mva_examples.ExamplesTest
extend the examples test class to actually run over the mva examples:
Definition:
mva_examples.py:18
mva_examples.ExamplesTest.test_mva_examples
def test_mva_examples(self)
Definition:
mva_examples.py:19
analysis
tests
mva_examples.py
Generated on Tue Jul 9 2024 23:27:18 for Belle II Software by
1.9.6