reV.bespoke.place_turbines.none_until_optimized

none_until_optimized(func)[source]

Decorator that returns None until PlaceTurbines is optimized.

Meant for exclusive use in PlaceTurbines and its subclasses. PlaceTurbines is considered optimized when its optimized_design_variables attribute is not None.

Parameters:

func (callable) – A callable function that should return None until PlaceTurbines is optimized.

Returns:

callable – New function that returns None until PlaceTurbines is optimized.