brainvisa / anatomist-free

3D visualization of neuroimaging objects, C++ part
Other
2 stars 0 forks source link

T profile issue #14

Closed nsouedet closed 5 years ago

nsouedet commented 5 years ago

The following issue occurs when switching to T axis in profile window

Traceback (most recent call last):
   File 
"/volatile/delzesca/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/share/anatomist-4.7/python_plugins/profilewindow.py", 
line 433, in muteOrientationT
     self.Refresh()
   File 
"/volatile/delzesca/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/share/anatomist-4.7/python_plugins/profilewindow.py", 
line 383, in Refresh
     self.plotObject(obj)
   File 
"/volatile/delzesca/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/share/anatomist-4.7/python_plugins/profilewindow.py", 
line 205, in plotObject
     return self.plotTprofile(obj)
   File 
"/volatile/delzesca/svn/brainvisa_bioproj/brainvisa/build/Ubuntu-16.04-x86_64/trunk/release/share/anatomist-4.7/python_plugins/profilewindow.py", 
line 364, in plotTprofile
     data = ar[ipos[0], ipos[1], ipos[2], :]
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis 
(`None`) and integer or boolean arrays are valid indices