@@ -21,7 +21,7 @@ def xslice(x, y_spec, z_spec, output_space=''):
21
21
x : float
22
22
The value at which x is fixed.
23
23
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
25
25
(float, float) components are the min and max y values; the int
26
26
is the number of points.
27
27
z_spec : sequence
@@ -32,7 +32,7 @@ def xslice(x, y_spec, z_spec, output_space=''):
32
32
Returns
33
33
-------
34
34
affine_transform : AffineTransform
35
- An affine transform that describes an plane in
35
+ An affine transform that describes an plane in
36
36
LPS coordinates with x fixed.
37
37
38
38
Examples
@@ -78,7 +78,7 @@ def yslice(y, x_spec, z_spec, output_space=''):
78
78
y : float
79
79
The value at which y is fixed.
80
80
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
82
82
(float, float) components are the min and max x values; the int
83
83
is the number of points.
84
84
z_spec : sequence
@@ -89,7 +89,7 @@ def yslice(y, x_spec, z_spec, output_space=''):
89
89
Returns
90
90
-------
91
91
affine_transform : AffineTransform
92
- An affine transform that describes an plane in
92
+ An affine transform that describes an plane in
93
93
LPS coordinates with y fixed.
94
94
95
95
Examples
@@ -136,7 +136,7 @@ def zslice(z, x_spec, y_spec, output_space=''):
136
136
z : float
137
137
The value at which z is fixed.
138
138
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
140
140
(float, float) components are the min and max x values; the int
141
141
is the number of points.
142
142
y_spec : sequence
@@ -147,7 +147,7 @@ def zslice(z, x_spec, y_spec, output_space=''):
147
147
Returns
148
148
-------
149
149
affine_transform : AffineTransform
150
- An affine transform that describes an plane in
150
+ An affine transform that describes an plane in
151
151
LPS coordinates with z fixed.
152
152
153
153
Examples
@@ -187,22 +187,22 @@ def zslice(z, x_spec, y_spec, output_space=''):
187
187
188
188
def bounding_box (coordmap , shape ):
189
189
"""
190
- Determine a valid bounding box from a CoordinateMap
190
+ Determine a valid bounding box from a CoordinateMap
191
191
and a shape.
192
192
193
193
Parameters
194
194
----------
195
195
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.
198
198
shape : sequence of int
199
199
shape implying array
200
-
200
+
201
201
Returns
202
202
-------
203
203
limits : (N,) tuple of (2,) tuples of float
204
204
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].
206
206
207
207
Examples
208
208
--------
@@ -212,4 +212,4 @@ def bounding_box(coordmap, shape):
212
212
"""
213
213
e = ArrayCoordMap .from_shape (coordmap , shape )
214
214
return tuple ([(r .min (), r .max ()) for r in e .transposed_values ])
215
-
215
+
0 commit comments