Commit 072ac92
committed
FIX: Specify standardization strategy in carpet plot data cleaning
Specify standardization strategy in carpet plot data cleaning: set the
standardization explicitly to `zscore_sample` to keep the current
strategy.
Fixes:
```
nireports/tests/test_dwi.py::test_nii_to_carpetplot_data
nireports/tests/test_interfaces.py::test_FMRISummary
nireports/reportlets/nuisance.py:300: FutureWarning:
The default strategy for standardize is currently 'zscore' which
incorrectly uses population std to calculate sample zscores.
The new strategy 'zscore_sample' corrects this behavior by using
the sample std. In release 0.14.0, the default strategy will be
replaced by the new strategy, the 'zscore' option will be removed.
and using standardize=True will fall back to 'zscore_sample'.
To avoid this warning, please use 'zscore_sample' instead.
data = clean(data.T, t_r=tr, filter=False).T
```
raised for example at:
https://github.com/nipreps/nireports/actions/runs/22579217636/job/65406364989#step:14:3421 parent f6d58b0 commit 072ac92
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments