Belle II Software
light-2409-toyger
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
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 Sat Sep 28 2024 03:40:58 for Belle II Software by
1.9.6