Skip to content

Commit

Permalink
Merge pull request #52 from predict-idlab/make_robust_update
Browse files Browse the repository at this point in the history
🙈 minor bug fix in make_robust
  • Loading branch information
jvdd committed Dec 12, 2021
2 parents 21e1c4a + ab8656e commit 8638d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsflex/features/utils.py
Expand Up @@ -120,7 +120,7 @@ def wrap_func(*series: Union[np.ndarray, pd.Series], **kwargs) -> FuncWrapper:
if not passthrough_nans:
series = [s[~np.isnan(s)] for s in series]
if any([len(s) < min_nb_samples for s in series]):
if not isinstance(output_names, list):
if not isinstance(output_names, list) or len(output_names) == 1:
return error_val
return tuple([error_val] * len(output_names))
return func(*series, **kwargs)
Expand Down

0 comments on commit 8638d98

Please sign in to comment.