Skip to content

Commit

Permalink
TVB-2236 Fix error in TSRegion viewer
Browse files Browse the repository at this point in the history
git-svn-id: https://repo.thevirtualbrain.org/svn/tvb/trunk/scientific_library@8239 1c0e02f0-7929-43c0-8fb3-3293bf43b0d1
  • Loading branch information
liadomide committed May 9, 2017
1 parent c8f73eb commit 47b8bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tvb/datatypes/region_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_voxel_region(self, x_plane, y_plane, z_plane):
slices = slice(x_plane, x_plane + 1), slice(y_plane, y_plane + 1), slice(z_plane, z_plane + 1)
voxel = self.read_data_slice(slices)[0, 0, 0]
if voxel != -1:
return self.connectivity.region_labels[voxel]
return self.connectivity.region_labels[int(voxel)]
else:
return 'background'

Expand Down

0 comments on commit 47b8bf2

Please sign in to comment.