Skip to content

Commit 556d87c

Browse files
committed
docstrings: fixed typo (flaat), removed trailing spaces, wrapped 1 docline
1 parent f8b7e4e commit 556d87c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

nipy/core/reference/slices.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def xslice(x, y_spec, z_spec, output_space=''):
2121
x : float
2222
The value at which x is fixed.
2323
y_spec : sequence
24-
A sequence with 2 values of form ((flaat, float), int). The
24+
A sequence with 2 values of form ((float, float), int). The
2525
(float, float) components are the min and max y values; the int
2626
is the number of points.
2727
z_spec : sequence
@@ -32,7 +32,7 @@ def xslice(x, y_spec, z_spec, output_space=''):
3232
Returns
3333
-------
3434
affine_transform : AffineTransform
35-
An affine transform that describes an plane in
35+
An affine transform that describes an plane in
3636
LPS coordinates with x fixed.
3737
3838
Examples
@@ -78,7 +78,7 @@ def yslice(y, x_spec, z_spec, output_space=''):
7878
y : float
7979
The value at which y is fixed.
8080
x_spec : sequence
81-
A sequence with 2 values of form ((flaat, float), int). The
81+
A sequence with 2 values of form ((float, float), int). The
8282
(float, float) components are the min and max x values; the int
8383
is the number of points.
8484
z_spec : sequence
@@ -89,7 +89,7 @@ def yslice(y, x_spec, z_spec, output_space=''):
8989
Returns
9090
-------
9191
affine_transform : AffineTransform
92-
An affine transform that describes an plane in
92+
An affine transform that describes an plane in
9393
LPS coordinates with y fixed.
9494
9595
Examples
@@ -136,7 +136,7 @@ def zslice(z, x_spec, y_spec, output_space=''):
136136
z : float
137137
The value at which z is fixed.
138138
x_spec : sequence
139-
A sequence with 2 values of form ((flaat, float), int). The
139+
A sequence with 2 values of form ((float, float), int). The
140140
(float, float) components are the min and max x values; the int
141141
is the number of points.
142142
y_spec : sequence
@@ -147,7 +147,7 @@ def zslice(z, x_spec, y_spec, output_space=''):
147147
Returns
148148
-------
149149
affine_transform : AffineTransform
150-
An affine transform that describes an plane in
150+
An affine transform that describes an plane in
151151
LPS coordinates with z fixed.
152152
153153
Examples
@@ -187,22 +187,22 @@ def zslice(z, x_spec, y_spec, output_space=''):
187187

188188
def bounding_box(coordmap, shape):
189189
"""
190-
Determine a valid bounding box from a CoordinateMap
190+
Determine a valid bounding box from a CoordinateMap
191191
and a shape.
192192
193193
Parameters
194194
----------
195195
coordmap : CoordinateMap or AffineTransform
196-
Containing mapping between voxel coordinates implied by `shape` and physical
197-
coordinates.
196+
Containing mapping between voxel coordinates implied by `shape` and
197+
physical coordinates.
198198
shape : sequence of int
199199
shape implying array
200-
200+
201201
Returns
202202
-------
203203
limits : (N,) tuple of (2,) tuples of float
204204
minimum and maximum coordinate values in output space (range) of
205-
`coordmap`. N is given by coordmap.ndim[1].
205+
`coordmap`. N is given by coordmap.ndim[1].
206206
207207
Examples
208208
--------
@@ -212,4 +212,4 @@ def bounding_box(coordmap, shape):
212212
"""
213213
e = ArrayCoordMap.from_shape(coordmap, shape)
214214
return tuple([(r.min(), r.max()) for r in e.transposed_values])
215-
215+

0 commit comments

Comments
 (0)