Belle II Software  release-08-01-10
IntervalSelector Class Reference

Public Member Functions

def __init__ (self, intervals)
 
bool in_interval (self, Script script_object)
 

Public Attributes

 intervals
 stores the intervals which have been selected
 

Detailed Description

This can be used to parse the execution intervals of validation scripts
and can check whether a script object is in the list of intervals
configured in this class.

Definition at line 429 of file validation.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  intervals 
)
Initializes the IntervalSelector class with a list of intervals which
should be selected

Definition at line 436 of file validation.py.

436  def __init__(self, intervals):
437  """
438  Initializes the IntervalSelector class with a list of intervals which
439  should be selected
440  """
441 
442 
443  self.intervals = [x.strip() for x in intervals]
444 

Member Function Documentation

◆ in_interval()

bool in_interval (   self,
Script  script_object 
)
checks whether the interval listed in a script object's header is
within the selected

Definition at line 445 of file validation.py.


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