search_threshold_dispatcher

nrv.ui.search_threshold_dispatcher(search_func: Callable, parameter_list: list[any], ncore: int = None, **kwargs) list[any][source]

Automatically dispatches any search threshold callable object on available cpu cores.

Parameters:
  • search_func (Callable) – Any callable object that takes as input a value from parameter_list and that returns a threshold

  • parameter_list (list[any]) – Lists the values to evaluate the thresholds

  • ncore (int, optional) – Fix the number of CPU core count. If None, ncore is set the size of parameter_list. By default None

Returns:

List of ordered thresholds.

Return type:

list[any]