Skip to content

Commit

Permalink
FIX integer indices
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Nov 3, 2023
1 parent d51d48e commit eda09cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def get_roi_verts(subject, roi=None, mask=False, overlay_file=None):
extra_idx = set()
for idx in roi_idx:
extra_idx.update(ii for ii in neighbors_dict[idx] if ii not in goodpts)
roi_idx = np.unique(np.concatenate((roi_idx, list(extra_idx))))
roi_idx = np.unique(np.concatenate((roi_idx, list(extra_idx)))).astype(int)

if mask:
roidict[name] = np.zeros(pts.shape[:1], dtype=bool)
Expand Down

0 comments on commit eda09cd

Please sign in to comment.