Belle II Software development
ExpertLevelRefiner Class Reference
Inheritance diagram for ExpertLevelRefiner:
Refiner

Public Member Functions

def __init__ (self, wrapped_refiner, above_expert_level=None, below_expert_level=None)
 
def refine (self, harvesting_module, crops, *args, **kwds)
 

Public Attributes

 wrapped_refiner
 cached value of the wrapped refiner
 
 above_expert_level
 cached value of the upper range of the expert level
 
 below_expert_level
 cached value of the lower range of the expert level
 

Detailed Description

Refiner for expert-level categorization

Definition at line 1107 of file refiners.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  wrapped_refiner,
  above_expert_level = None,
  below_expert_level = None 
)
Constructor for this refiner

Reimplemented from Refiner.

Definition at line 1110 of file refiners.py.

1110 def __init__(self, wrapped_refiner, above_expert_level=None, below_expert_level=None):
1111 """Constructor for this refiner"""
1112
1113
1114 self.wrapped_refiner = wrapped_refiner
1115
1116 self.above_expert_level = above_expert_level
1117
1118 self.below_expert_level = below_expert_level
1119

Member Function Documentation

◆ refine()

def refine (   self,
  harvesting_module,
  crops,
args,
**  kwds 
)
Process the expert-level categorization

Reimplemented from Refiner.

Definition at line 1120 of file refiners.py.

1120 def refine(self, harvesting_module, crops, *args, **kwds):
1121 """Process the expert-level categorization"""
1122
1123 above_expert_level = self.above_expert_level
1124 below_expert_level = self.below_expert_level
1125
1126 proceed = True
1127 if above_expert_level is not None:
1128 proceed = proceed and harvesting_module.expert_level > above_expert_level
1129
1130 if below_expert_level is not None:
1131 proceed = proceed and harvesting_module.expert_level < below_expert_level
1132
1133 if proceed:
1134 self.wrapped_refiner(harvesting_module, crops, *args, **kwds)
1135
1136
1137# Meta refiner decorators

Member Data Documentation

◆ above_expert_level

above_expert_level

cached value of the upper range of the expert level

Definition at line 1116 of file refiners.py.

◆ below_expert_level

below_expert_level

cached value of the lower range of the expert level

Definition at line 1118 of file refiners.py.

◆ wrapped_refiner

wrapped_refiner

cached value of the wrapped refiner

Definition at line 1114 of file refiners.py.


The documentation for this class was generated from the following file: