Skip to content

Commit 009b148

Browse files
committed
brain regions aggregation mappings (2/2)
1 parent e783de2 commit 009b148

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
@@ -339,8 +339,9 @@ def cursor2xyamp(self, qpoint):
339339
ba = self.qwidget.topview.ctrl.atlas
340340
xyz = np.zeros(3)
341341
xyz[np.array([self.waxis, self.haxis, self.daxis])] = [w, h, self.slice_coord]
342+
mapping = self.qwidget.topview.comboBox_mappings.currentText()
342343
try:
343-
region = ba.regions.get(ba.get_labels(xyz))
344+
region = ba.regions.get(ba.get_labels(xyz, mapping=mapping))
344345
except ValueError:
345346
region = None
346347
return iw, ih, w, h, v, region

0 commit comments

Comments
 (0)