Skip to content

Commit b112d53

Browse files
authored
Fix links to documentation (#1354)
1 parent e400fef commit b112d53

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/torchio/data/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class Image(dict):
121121
>>> image = tio.ScalarImage('t1.npy', reader=numpy_reader)
122122
123123
.. _lazy loaders: https://en.wikipedia.org/wiki/Lazy_loading
124-
.. _preprocessing: https://torchio-project.github.io/torchio/transforms/preprocessing.html#intensity
125-
.. _augmentation: https://torchio-project.github.io/torchio/transforms/augmentation.html#intensity
124+
.. _preprocessing: https://docs.torchio.org/transforms/preprocessing.html#intensity
125+
.. _augmentation: https://docs.torchio.org/transforms/augmentation.html#intensity
126126
.. _NiBabel docs: https://nipy.org/nibabel/image_orientation.html
127127
.. _NiBabel docs on coordinates: https://nipy.org/nibabel/coordinate_systems.html#the-affine-matrix-as-a-transformation-between-spaces
128128
.. _3D Slicer wiki: https://www.slicer.org/wiki/Coordinate_systems

src/torchio/transforms/data_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_subject(self):
7575
'If the input is a dictionary, a value for "include" must'
7676
' be specified when instantiating the transform. See the'
7777
' docs for Transform:'
78-
' https://torchio-project.github.io/torchio/transforms/transforms.html#torchio.transforms.Transform'
78+
' https://docs.torchio.org/transforms/transforms.html#torchio.transforms.Transform'
7979
)
8080
raise RuntimeError(message)
8181
subject = self._get_subject_from_dict(

src/torchio/transforms/preprocessing/spatial/crop_or_pad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CropOrPad(SpatialTransform):
5959
6060
.. warning:: If :attr:`target_shape` is ``None``, subjects in the dataset
6161
will probably have different shapes. This is probably fine if you are
62-
using `patch-based training <https://torchio-project.github.io/torchio/patches/index.html>`_.
62+
using `patch-based training <https://docs.torchio.org/patches/index.html>`_.
6363
If you are using full volumes for training and a batch size larger than
6464
one, an error will be raised by the :class:`~torch.utils.data.DataLoader`
6565
while trying to collate the batches.

0 commit comments

Comments
 (0)