Problem.is_step_in_problem

Problem.is_step_in_problem(step, add=True)[source]

Check if a compas_fea2.problem._Step is defined in the Problem.

Parameters:
stepcompas_fea2.problem._Step

The Step object to find.

Returns:
compas_fea2.problem._Step
Raises:
ValueError

if step is a string and the step is not defined in the problem

TypeError

step must be either an instance of a compas_fea2 Step class or the name of a Step already defined in the Problem.