Belle II Software  release-05-02-19
IntervalSelector Class Reference

Public Member Functions

def __init__ (self, intervals)
 
def in_interval (self, 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 390 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 397 of file validation.py.

397  def __init__(self, intervals):
398  """
399  Initializes the IntervalSelector class with a list of intervals which
400  should be selected
401  """
402 
403 
404  self.intervals = [x.strip() for x in intervals]
405 

Member Function Documentation

◆ in_interval()

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

Definition at line 406 of file validation.py.


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