ATLAS Offline Software
Classes | Functions
python.TrigValSteering.Step Namespace Reference

Classes

class  Step
 

Functions

def get_step_from_list (step_name, step_list)
 
def get_step_type_from_list (step_type, step_list)
 

Function Documentation

◆ get_step_from_list()

def python.TrigValSteering.Step.get_step_from_list (   step_name,
  step_list 
)
Retrieve the first test matching the name from the list. Returns None if
no match is found.

Definition at line 230 of file Step.py.

230 def get_step_from_list(step_name, step_list):
231  '''
232  Retrieve the first test matching the name from the list. Returns None if
233  no match is found.
234  '''
235  for step in step_list:
236  if step.name is not None and step_name in step.name:
237  return step
238  return None
239 
240 

◆ get_step_type_from_list()

def python.TrigValSteering.Step.get_step_type_from_list (   step_type,
  step_list 
)
Retrieve the first test matching the type from the list. Returns None if
no match is found.

Definition at line 241 of file Step.py.

241 def get_step_type_from_list(step_type, step_list):
242  '''
243  Retrieve the first test matching the type from the list. Returns None if
244  no match is found.
245  '''
246  for step in step_list:
247  if isinstance(step, step_type):
248  return step
249  return None
python.TrigValSteering.Step.get_step_from_list
def get_step_from_list(step_name, step_list)
Definition: Step.py:230
python.TrigValSteering.Step.get_step_type_from_list
def get_step_type_from_list(step_type, step_list)
Definition: Step.py:241