Skip to content

Commit 6c00959

Browse files
authored
Merge pull request #239 from jhlegarreta/doc/link-exceptions-to-doc
DOC: Link exceptions to Python documentation
2 parents cf400cd + 7da17b8 commit 6c00959

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/nifreeze/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def load(
5555
5656
Raises
5757
------
58-
ValueError
58+
:exc:`ValueError`
5959
If the file extension is not supported or the file cannot be loaded.
6060
6161
"""

src/nifreeze/data/dmri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def from_nii(
334334
335335
Raises
336336
------
337-
RuntimeError
337+
:exc:`RuntimeError`
338338
If no gradient information is provided (neither ``gradients_file`` nor
339339
``bvec_file`` + ``bval_file``).
340340

src/nifreeze/data/pet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def from_nii(
257257
258258
Raises
259259
------
260-
RuntimeError
260+
:exc:`RuntimeError`
261261
If ``frame_time`` is not provided (BIDS requires it).
262262
263263
"""

0 commit comments

Comments
 (0)