Skip to content

Commit 617d8f5

Browse files
committed
Merge pull request #394 from samuelstjean/patch-1
MRG: Fixed typos in trackvis
2 parents cf77776 + 12c6195 commit 617d8f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nibabel/trackvis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
('hdr_size', 'i4'),
4848
]
4949

50-
# Version 2 adds a 4x4 matrix giving the affine transformtation going
50+
# Version 2 adds a 4x4 matrix giving the affine transformation going
5151
# from voxel coordinates in the referenced 3D voxel matrix, to xyz
5252
# coordinates (axes L->R, P->A, I->S). IF (0 based) value [3, 3] from
5353
# this matrix is 0, this means the matrix is not recorded.
@@ -111,7 +111,7 @@ def read(fileobj, as_generator=False, points_space=None, strict=True):
111111
The coordinates in which you want the points in the *output*
112112
streamlines expressed. If None, then return the points exactly as they
113113
are stored in the trackvis file. The points will probably be in
114-
trackviz voxmm space - see Notes for ``write`` function. If 'voxel',
114+
trackvis voxmm space - see Notes for ``write`` function. If 'voxel',
115115
we convert the points to voxel space simply by dividing by the recorded
116116
voxel size. If 'rasmm' we'll convert the points to RAS mm space (real
117117
space). For 'rasmm' we check if the affine is set and matches the voxel
@@ -291,8 +291,8 @@ def write(fileobj, streamlines, hdr_mapping=None, endianness=None,
291291
points_space : {None, 'voxel', 'rasmm'}, optional
292292
The coordinates in which the points in the input streamlines are
293293
expressed. If None, then assume the points are as you want them
294-
(probably trackviz voxmm space - see Notes). If 'voxel', the points
295-
are in voxel space, and we will transform them to trackviz voxmm space.
294+
(probably trackvis voxmm space - see Notes). If 'voxel', the points
295+
are in voxel space, and we will transform them to trackvis voxmm space.
296296
If 'rasmm' the points are in RAS mm space (real space). We transform
297297
them to trackvis voxmm space. If 'voxel' or 'rasmm' we insist that the
298298
voxel sizes and ordering are set to non-default values. If 'rasmm' we
@@ -331,7 +331,7 @@ def write(fileobj, streamlines, hdr_mapping=None, endianness=None,
331331
Notes
332332
-----
333333
Trackvis (the application) expects the ``points`` in the streamlines be in
334-
what we call *trackviz voxmm* coordinates. If we have a point (x, y, z) in
334+
what we call *trackvis voxmm* coordinates. If we have a point (x, y, z) in
335335
voxmm coordinates, and ``voxel_size`` has the voxel sizes for each of the 3
336336
dimensions, then x, y, z refer to mm in voxel space. Thus if i, j, k is a
337337
point in voxel coordinates, then ``x = i * voxel_size[0]; y = j *
@@ -343,7 +343,7 @@ def write(fileobj, streamlines, hdr_mapping=None, endianness=None,
343343
axis goes from posterior to anterior, "S" -> inferior to superior. If
344344
"voxel_order" is empty we assume "LPS".
345345
346-
This information comes from some helpful replies on the trackviz forum
346+
This information comes from some helpful replies on the trackvis forum
347347
about `interpreting point coordiantes
348348
<http://trackvis.org/blog/forum/diffusion-toolkit-usage/interpretation-of-track-point-coordinates>`_
349349
'''

0 commit comments

Comments
 (0)