Belle II Software development
mva_examples.py
1#!/usr/bin/env python3
2# -- analysis/tests/mva_examples.py
3
4
11
12import b2test_utils as b2tu
13import b2test_utils_analysis as b2tua
14
15
16
17
18class ExamplesTest(b2tua.ExamplesTest):
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
32if __name__ == '__main__':
33 with b2tu.clean_working_directory():
34 b2tua.unittest.main()
extend the examples test class to actually run over the mva examples:
Definition: mva_examples.py:18