Check if the extra Info values are correctly overwritten
Definition at line 24 of file test_MVAExpertModule.py.
◆ event()
check the extra info names are what we expect!
Definition at line 37 of file test_MVAExpertModule.py.
38 """check the extra info names are what we expect!"""
39 for multiclass
in [
False,
True]:
40 for multiexpert_prefix
in [
'multi_',
'']:
41 for name, value
in [(
'low_never', 0.5),
50 name = multiexpert_prefix+name
52 for index
in range(3):
53 compare_val = index + value
54 extra_info_name = f
'multiclass_{name}_{index}'
57 ei_value = p.getExtraInfo(extra_info_name)
58 assert ei_value == compare_val,\
59 f
'ExtraInfo "{extra_info_name}" value "{ei_value}" not what was expected {compare_val}'
61 for p
in self.comp_plist:
62 if 'multi_' in extra_info_name:
64 ei_value = p.getDaughter(0).getExtraInfo(extra_info_name)
65 assert ei_value == compare_val,\
66 f
'ExtraInfo "{extra_info_name}" value "{ei_value}" not what was expected {compare_val}'
68 ei_value = self.eventExtraInfo.getExtraInfo(extra_info_name)
69 assert ei_value == compare_val,\
70 f
'eventExtraInfo "{extra_info_name}" value "{ei_value}" not what was expected {compare_val}'
72 extra_info_name = name
75 ei_value = p.getExtraInfo(name)
76 assert ei_value == value,\
77 f
'ExtraInfo "{name}" value "{ei_value}" not what was expected "{value}"'
79 for p
in self.comp_plist:
80 if 'multi_' in extra_info_name:
82 ei_value = p.getDaughter(0).getExtraInfo(name)
83 assert ei_value == value,\
84 f
'ExtraInfo "{name}" value "{ei_value}" not what was expected "{value}"'
85 ei_value = self.eventExtraInfo.getExtraInfo(name)
86 assert ei_value == value,\
87 f
'eventExtraInfo "{name}" value "{ei_value}" not what was expected "{value}"'
◆ initialize()
The documentation for this class was generated from the following file: