Skip to content

Commit 4ce7920

Browse files
committed
slicer regressions
1 parent 96db62f commit 4ce7920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

atlasview/atlasview.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class ControllerTopView(PgImageController):
264264
def __init__(self, qmain: TopView, res: int = 25, volume='image', brainmap='Allen'):
265265
super(ControllerTopView, self).__init__(qmain)
266266
self.volume = volume
267-
self.atlas = AllenAtlas(res, brainmap=brainmap)
267+
self.atlas = AllenAtlas(res)
268268
self.fig_top = self.qwidget = qmain
269269
# Setup Coronal slice: width: ml, height: dv, depth: ap
270270
self.fig_coronal = SliceView(qmain, waxis=0, haxis=2, daxis=1)
@@ -292,6 +292,7 @@ def set_slice(self, fig, coord=0, mapping="Allen"):
292292
fig.ctrl.slice_coord = coord
293293

294294
def set_top(self):
295+
self.atlas.compute_surface()
295296
img = self.atlas.top.transpose()
296297
img[np.isnan(img)] = np.nanmin(img) # img has dims ml, ap
297298
dw, dh = (self.atlas.bc.dxyz[0], self.atlas.bc.dxyz[1])

0 commit comments

Comments
 (0)