Skip to content

Commit 97d9edf

Browse files
committed
ENH: Fix return value type annotation in GP error analysis script func
Fix return value type annotation in GP error analysis script function. Fixes: ``` scripts/dwi_gp_estimation_error_analysis.py:78: error: Incompatible return value type (got "ndarray[Any, Any]", expected "dict[int, list[tuple[ndarray[Any, Any], ndarray[Any, Any], ndarray[Any, Any], ndarray[Any, Any]]]]") [return-value] ``` raised for example in: https://github.com/nipreps/nifreeze/actions/runs/12437972140/job/34728973936#step:8:111
1 parent 6b6ba70 commit 97d9edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/dwi_gp_estimation_error_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def cross_validate(
4949
cv: int,
5050
n_repeats: int,
5151
gpr: DiffusionGPR,
52-
) -> dict[int, list[tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]]]:
52+
) -> np.ndarray:
5353
"""
5454
Perform the experiment by estimating the dMRI signal using a Gaussian process model.
5555
@@ -68,7 +68,7 @@ def cross_validate(
6868
6969
Returns
7070
-------
71-
:obj:`dict`
71+
:obj:`~numpy.ndarray`
7272
Data for the predicted signal and its error.
7373
7474
"""

0 commit comments

Comments
 (0)