Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
fslpy
Commits
3703fb5a
Commit
3703fb5a
authored
Jul 22, 2019
by
Paul McCarthy
🚵
Browse files
DOC: Formatting, tweaks
parent
2900d79e
Changes
5
Hide whitespace changes
Inline
Side-by-side
fsl/transform/flirt.py
View file @
3703fb5a
...
...
@@ -79,7 +79,6 @@ def fromFlirt(xform, src, ref, from_='voxel', to='world'):
:returns: ``numpy`` array of shape ``(4, 4)`` containing a matrix
encoding a transformation from the source ``from_`` to
the reference ``to`` coordinate systems.
"""
premat
=
src
.
getAffine
(
from_
,
'fsl'
)
postmat
=
ref
.
getAffine
(
'fsl'
,
to
)
...
...
fsl/transform/nonlinear.py
View file @
3703fb5a
...
...
@@ -174,7 +174,8 @@ class DeformationField(NonLinearTransform):
It is assumed that the a ``DeformationField`` is aligned with the
reference image in their world coordinate systems (i.e. their ``sform``
affines project both images into alignment).
affines project the reference image and the deformation field into
alignment).
"""
...
...
@@ -686,7 +687,7 @@ def applyDeformation(image, field, ref=None, order=1, mode=None, cval=None):
If an alternate reference image is provided via the ``ref`` argument,
the deformation field is resampled into its space, and then applied to
the input image. It is therefore assumed that an alternate ``ref``is
the input image. It is therefore assumed that an alternate ``ref``
is
aligned in world coordinates with the field's actual reference image.
:arg image: :class:`.Image` to be transformed
...
...
fsl/transform/x5.py
View file @
3703fb5a
...
...
@@ -555,9 +555,9 @@ def _readDeformation(group):
:arg group: A ``h5py.Group`` object
:returns: A tuple containing
- A ``numpy.array
The
`` containing the deformation field
- A ``numpy.array`` containing the deformation field
- A ``numpy.array`` of shape ``(4, 4)
`` containing the
- A ``numpy.array`` of shape ``(4, 4)`` containing the
voxel to world affine for the deformation field
- The deformation type - either ``'absolute'`` or
...
...
fsl/utils/idle.py
View file @
3703fb5a
...
...
@@ -278,7 +278,7 @@ class IdleTask(object):
def
_wxIdleLoop
(
ev
):
"""Function which is called on ``wx.EVT_IDLE`` events, and occasionally
on ``wx.EVT_TIMER` events via the :attr:`_idleTimer`. If there
on ``wx.EVT_TIMER`
`
events via the :attr:`_idleTimer`. If there
is a function on the :attr:`_idleQueue`, it is popped and called.
.. note:: The ``wx.EVT_IDLE`` event is only triggered on user interaction
...
...
fsl/wrappers/wrapperutils.py
View file @
3703fb5a
...
...
@@ -446,7 +446,7 @@ class _FileOrThing(object):
Functions decorated with a ``_FileOrThing`` decorator will always return a
``dict``-like object, where the function's actual return value is
accessible via an attribute called `output`. All output arguments with a
accessible via an attribute called
`
`output`
`
. All output arguments with a
value of ``LOAD`` will be present as dictionary entries, with the keyword
argument names used as keys. Any ``LOAD``ed output arguments which were not
generated by the function will not be present in the dictionary.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment