ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigValSteering.Step Namespace Reference

Classes

class  Step

Functions

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

Detailed Description

Base classes for steps in Trigger ART tests

Function Documentation

◆ get_step_from_list()

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.

230def 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()

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.

241def 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