Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/nipyPublic

Commit9f13f5e

Browse files
Update doc/labs/viz.rst
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
1 parent431e117 commit9f13f5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎doc/labs/viz.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ An example
3636
mni_sform_inv = np.linalg.inv(mni_sform)
3737
# Color an asymmetric rectangle around Broca area:
3838
x, y, z = -52, 10, 22
39-
x_map, y_map, z_map = coord_transform(x, y, z, mni_sform_inv)
40-
x_map, y_map, z_map = int(x_map), int(y_map), int(z_map)
39+
x_map, y_map, z_map = [int(coord) for coord in coord_transform(x, y, z, mni_sform_inv)]
4140
map = np.zeros((182, 218, 182))
4241
map[x_map-30:x_map+30, y_map-3:y_map+3, z_map-10:z_map+10] = 1
4342

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp