pyhctsa.utils.nan_outputs

pyhctsa.utils.nan_outputs(func, *args, **kwargs)

The output of func(y, *args, **kwargs) when every one of its outputs is undefined: a dict with all of its fields NaN (nan if the function does not return a dict).

The field names are those of the function’s own output, with the same arguments, on a well-behaved reference series (found the first time they are needed, then remembered).

Parameters:
func : Callable

Return type:

dict | float