(*args, **kwargs)
| 281 | ) |
| 282 | |
| 283 | def func(*args, **kwargs): |
| 284 | # swallow SciPy warnings caused by short good data spans |
| 285 | with warnings.catch_warnings(): |
| 286 | warnings.filterwarnings( |
| 287 | action="ignore", |
| 288 | module="scipy", |
| 289 | category=UserWarning, |
| 290 | message=r"nperseg = \d+ is greater than input length", |
| 291 | ) |
| 292 | return _func(*args, **kwargs) |
| 293 | |
| 294 | else: |
| 295 | # Either no NaNs, or NaNs are not aligned across channels. |
no outgoing calls