Skip to content

Commit 42c6ef1

Browse files
Fix numpy TypeError (#436)
1 parent 74afe66 commit 42c6ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainrender/atlas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def get_plane(
145145
[bounds[4], bounds[5]],
146146
]
147147

148-
wh = [float(np.diff(root_bounds[i])) for i in idx_pair]
148+
wh = [float(np.diff(root_bounds[i])[0]) for i in idx_pair]
149149
if sx is None:
150150
sx = wh[0]
151151
if sy is None:

0 commit comments

Comments
 (0)