Skip to content

Commit a6ec41e

Browse files
author
Oscar Esteban
committed
remove empty line before docstring
1 parent 94eeea2 commit a6ec41e

File tree

2 files changed

+5
-41
lines changed

2 files changed

+5
-41
lines changed

nipype/algorithms/mesh.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,23 @@
1212
1313
"""
1414
from __future__ import division
15-
from builtins import zip
1615

1716
import os.path as op
18-
from warnings import warn
19-
2017
import numpy as np
2118
from numpy import linalg as nla
2219

20+
from builtins import zip
21+
2322
from .. import logging
2423
from ..external.six import string_types
2524
from ..interfaces.base import (BaseInterface, traits, TraitedSpec, File,
2625
BaseInterfaceInputSpec)
2726
from ..interfaces.vtkbase import tvtk
2827
from ..interfaces import vtkbase as VTKInfo
29-
iflogger = logging.getLogger('interface')
28+
IFLOGGER = logging.getLogger('interface')
3029

3130

3231
class TVTKBaseInterface(BaseInterface):
33-
3432
""" A base class for interfaces using VTK """
3533

3634
_redirect_x = True
@@ -58,7 +56,6 @@ class WarpPointsOutputSpec(TraitedSpec):
5856

5957

6058
class WarpPoints(TVTKBaseInterface):
61-
6259
"""
6360
Applies a displacement field to a point set given in vtk format.
6461
Any discrete deformation field, given in physical coordinates and
@@ -79,8 +76,6 @@ class WarpPoints(TVTKBaseInterface):
7976
output_spec = WarpPointsOutputSpec
8077

8178
def _gen_fname(self, in_file, suffix='generated', ext=None):
82-
import os.path as op
83-
8479
fname, fext = op.splitext(op.basename(in_file))
8580

8681
if fext == '.gz':
@@ -96,7 +91,6 @@ def _gen_fname(self, in_file, suffix='generated', ext=None):
9691

9792
def _run_interface(self, runtime):
9893
import nibabel as nb
99-
import numpy as np
10094
from scipy import ndimage
10195

10296
r = tvtk.PolyDataReader(file_name=self.inputs.points)
@@ -170,7 +164,6 @@ class ComputeMeshWarpOutputSpec(TraitedSpec):
170164

171165

172166
class ComputeMeshWarp(TVTKBaseInterface):
173-
174167
"""
175168
Calculates a the vertex-wise warping to get surface2 from surface1.
176169
It also reports the average distance of vertices, using the norm specified
@@ -295,7 +288,6 @@ class MeshWarpMathsOutputSpec(TraitedSpec):
295288

296289

297290
class MeshWarpMaths(TVTKBaseInterface):
298-
299291
"""
300292
Performs the most basic mathematical operations on the warping field
301293
defined at each vertex of the input surface. A surface with scalar
@@ -386,7 +378,6 @@ def _list_outputs(self):
386378

387379

388380
class P2PDistance(ComputeMeshWarp):
389-
390381
"""
391382
Calculates a point-to-point (p2p) distance between two corresponding
392383
VTK-readable meshes or contours.
@@ -399,6 +390,5 @@ class P2PDistance(ComputeMeshWarp):
399390

400391
def __init__(self, **inputs):
401392
super(P2PDistance, self).__init__(**inputs)
402-
warn(('This interface has been deprecated since 1.0, please use '
403-
'ComputeMeshWarp'),
404-
DeprecationWarning)
393+
IFLOGGER.warn('This interface has been deprecated since 1.0, please use '
394+
'ComputeMeshWarp')

nipype/interfaces/fsl/utils.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class CopyGeomOutputSpec(TraitedSpec):
5252

5353

5454
class CopyGeom(FSLCommand):
55-
5655
"""Use fslcpgeom to copy the header geometry information to another image.
5756
Copy certain parts of the header information (image dimensions, voxel dimensions,
5857
voxel dimensions units string, image orientation/origin or qform/sform info)
@@ -114,7 +113,6 @@ class ImageMeantsOutputSpec(TraitedSpec):
114113

115114

116115
class ImageMeants(FSLCommand):
117-
118116
""" Use fslmeants for printing the average timeseries (intensities) to
119117
the screen (or saves to a file). The average is taken over all voxels in
120118
the mask (or all voxels in the image if no mask is specified)
@@ -158,7 +156,6 @@ class SmoothOutputSpec(TraitedSpec):
158156

159157

160158
class Smooth(FSLCommand):
161-
162159
"""
163160
Use fslmaths to smooth the image
164161
@@ -223,7 +220,6 @@ class MergeOutputSpec(TraitedSpec):
223220

224221

225222
class Merge(FSLCommand):
226-
227223
"""Use fslmerge to concatenate images
228224
229225
Images can be concatenated across time, x, y, or z dimensions. Across the
@@ -291,7 +287,6 @@ class ExtractROIOutputSpec(TraitedSpec):
291287

292288

293289
class ExtractROI(FSLCommand):
294-
295290
"""Uses FSL Fslroi command to extract region of interest (ROI)
296291
from an image.
297292
@@ -372,7 +367,6 @@ class SplitOutputSpec(TraitedSpec):
372367

373368

374369
class Split(FSLCommand):
375-
376370
"""Uses FSL Fslsplit command to separate a volume into images in
377371
time, x, y or z dimension.
378372
"""
@@ -424,7 +418,6 @@ class ImageMathsOutputSpec(TraitedSpec):
424418

425419

426420
class ImageMaths(FSLCommand):
427-
428421
"""Use FSL fslmaths command to allow mathematical manipulation of images
429422
`FSL info <http://www.fmrib.ox.ac.uk/fslcourse/lectures/practicals/intro/index.htm#fslutils>`_
430423
@@ -499,7 +492,6 @@ class FilterRegressorOutputSpec(TraitedSpec):
499492

500493

501494
class FilterRegressor(FSLCommand):
502-
503495
"""Data de-noising by regressing out part of a design matrix
504496
505497
Uses simple OLS regression on 4D images
@@ -555,7 +547,6 @@ class ImageStatsOutputSpec(TraitedSpec):
555547

556548

557549
class ImageStats(FSLCommand):
558-
559550
"""Use FSL fslstats command to calculate stats from images
560551
`FSL info
561552
<http://www.fmrib.ox.ac.uk/fslcourse/lectures/practicals/intro/index.htm#fslutils>`_
@@ -633,7 +624,6 @@ class AvScaleOutputSpec(TraitedSpec):
633624

634625

635626
class AvScale(FSLCommand):
636-
637627
"""Use FSL avscale command to extract info from mat file output of FLIRT
638628
639629
Examples
@@ -728,7 +718,6 @@ class OverlayOutputSpec(TraitedSpec):
728718

729719

730720
class Overlay(FSLCommand):
731-
732721
""" Use FSL's overlay command to combine background and statistical images
733722
into one volume
734723
@@ -845,7 +834,6 @@ class SlicerOutputSpec(TraitedSpec):
845834

846835

847836
class Slicer(FSLCommand):
848-
849837
"""Use FSL's slicer command to output a png image from a volume.
850838
851839
@@ -937,7 +925,6 @@ class PlotTimeSeriesOutputSpec(TraitedSpec):
937925

938926

939927
class PlotTimeSeries(FSLCommand):
940-
941928
"""Use fsl_tsplot to create images of time course plots.
942929
943930
Examples
@@ -1021,7 +1008,6 @@ class PlotMotionParamsOutputSpec(TraitedSpec):
10211008

10221009

10231010
class PlotMotionParams(FSLCommand):
1024-
10251011
"""Use fsl_tsplot to plot the estimated motion parameters from a realignment
10261012
program.
10271013
@@ -1135,7 +1121,6 @@ class ConvertXFMOutputSpec(TraitedSpec):
11351121

11361122

11371123
class ConvertXFM(FSLCommand):
1138-
11391124
"""Use the FSL utility convert_xfm to modify FLIRT transformation matrices.
11401125
11411126
Examples
@@ -1207,7 +1192,6 @@ class SwapDimensionsOutputSpec(TraitedSpec):
12071192

12081193

12091194
class SwapDimensions(FSLCommand):
1210-
12111195
"""Use fslswapdim to alter the orientation of an image.
12121196
12131197
This interface accepts a three-tuple corresponding to the new
@@ -1250,7 +1234,6 @@ class PowerSpectrumOutputSpec(TraitedSpec):
12501234

12511235

12521236
class PowerSpectrum(FSLCommand):
1253-
12541237
"""Use FSL PowerSpectrum command for power spectrum estimation.
12551238
12561239
Examples
@@ -1311,7 +1294,6 @@ class SigLossOuputSpec(TraitedSpec):
13111294

13121295

13131296
class SigLoss(FSLCommand):
1314-
13151297
"""Estimates signal loss from a field map (in rad/s)
13161298
13171299
Examples
@@ -1353,7 +1335,6 @@ class Reorient2StdOutputSpec(TraitedSpec):
13531335

13541336

13551337
class Reorient2Std(FSLCommand):
1356-
13571338
"""fslreorient2std is a tool for reorienting the image to match the
13581339
approximate orientation of the standard template images (MNI152).
13591340
@@ -1442,7 +1423,6 @@ class InvWarpOutputSpec(TraitedSpec):
14421423

14431424

14441425
class InvWarp(FSLCommand):
1445-
14461426
"""
14471427
Use FSL Invwarp to invert a FNIRT warp
14481428
@@ -1529,7 +1509,6 @@ class ComplexOuputSpec(TraitedSpec):
15291509

15301510

15311511
class Complex(FSLCommand):
1532-
15331512
"""fslcomplex is a tool for converting complex data
15341513
15351514
Examples
@@ -1665,7 +1644,6 @@ class WarpUtilsOutputSpec(TraitedSpec):
16651644

16661645

16671646
class WarpUtils(FSLCommand):
1668-
16691647
"""Use FSL `fnirtfileutils <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/fnirt/warp_utils.html>`_
16701648
to convert field->coefficients, coefficients->field, coefficients->other_coefficients etc
16711649
@@ -1798,7 +1776,6 @@ class ConvertWarpOutputSpec(TraitedSpec):
17981776

17991777

18001778
class ConvertWarp(FSLCommand):
1801-
18021779
"""Use FSL `convertwarp <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/fnirt/warp_utils.html>`_
18031780
for combining multiple transforms into one.
18041781
@@ -1854,7 +1831,6 @@ class WarpPointsOutputSpec(TraitedSpec):
18541831

18551832

18561833
class WarpPoints(CommandLine):
1857-
18581834
"""Use FSL `img2imgcoord <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/flirt/overview.html>`_
18591835
to transform point sets. Accepts plain text files and vtk files.
18601836
@@ -2011,7 +1987,6 @@ class WarpPointsToStdInputSpec(WarpPointsBaseInputSpec):
20111987

20121988

20131989
class WarpPointsToStd(WarpPoints):
2014-
20151990
"""
20161991
Use FSL `img2stdcoord <http://fsl.fmrib.ox.ac.uk/fsl/fsl-4.1.9/flirt/overview.html>`_
20171992
to transform point sets to standard space coordinates. Accepts plain text files and
@@ -2073,7 +2048,6 @@ class MotionOutliersOutputSpec(TraitedSpec):
20732048

20742049

20752050
class MotionOutliers(FSLCommand):
2076-
20772051
"""
20782052
Use FSL fsl_motion_outliers`http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FSLMotionOutliers`_ to find outliers in timeseries (4d) data.
20792053
Examples

0 commit comments

Comments
 (0)