if standardize:
signals = _standardize(signals, normalize=True, detrend=False)
signals *= np.sqrt(signals.shape[0]) // for unit variance
return signals
After Change
if t_r is None:
raise ValueError("Repetition time (t_r) must be specified for "
"filtering. You specified None.")
if detrend:
mean_signals = signals.mean(axis=0)
signals = _standardize(signals, standardize=False, detrend=detrend)
if low_pass is not None or high_pass is not None:
if t_r is None: