Skip to content

Commit 47127ed

Browse files
committed
chore: update docstring for SpaceWarper
1 parent 59b331a commit 47127ed

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

junifer/preprocess/warping/space_warper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,16 @@ def preprocess( # noqa: C901
129129
------
130130
ValueError
131131
If ``extra_input`` is None when transforming to native space
132-
i.e., using ``"T1w"`` as reference.
132+
i.e., using ``"T1w"`` as reference or converting from native to
133+
template space or
134+
if the ``reference`` key is missing from ``input`` when converting
135+
from native to template space.
133136
RuntimeError
134137
If warper could not be found in ``extra_input`` when
135138
``using="auto"`` or converting from native space or
136139
if the data is in the correct space and does not require
137140
warping or
138-
if FSL is used when ``reference="T1w"``.
141+
if FSL or "auto" is used when ``reference!="T1w"``.
139142
140143
"""
141144
logger.info(f"Warping to {self.reference} space using SpaceWarper")

0 commit comments

Comments
 (0)