Operating system: Windows
Slicer version: 5.0.3
Expected behavior: Run GPA on PseudoLM data
Actual behavior: Does not load, produces error message (below)
Hello,
I am trying to run a GPA on 40 landmarked endocasts. Landmarks represent a dense point cloud (# LM = 1232) which was created with PseudoLMGenerator and applied to a larger dataset using ALPACA.
I can run a GPA on the first 23 species, but when I try to add additional species OR when I try to run it on species at the bottom of the list I get an error (below). As far as I can tell, all my .fcsv files look normal and I haven’t been able to pinpoint a single species from the bottom of the list which might be causing the error. I tried rerunning the GPA on the same data with fewer landmarks (n = 491) and reinstalling the Slicermorph extension but the same issue occurs.
Is there a way to resolve this?
Error Message:
C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\NA-MIC\Extensions-30893\SlicerMorph\lib\Slicer-5.0\qt-scripted-modules\Support\gpa_lib.py:94: RuntimeWarning: invalid value encountered in true_divide
shape=shape/np.linalg.norm(shape)
Traceback (most recent call last):
File “C:/Users/madle/AppData/Local/NA-MIC/Slicer 5.0.3/NA-MIC/Extensions-30893/SlicerMorph/lib/Slicer-5.0/qt-scripted-modules/GPA.py”, line 1241, in onLoad
self.LM.doGpa(self.skipScalingOption)
File “C:/Users/madle/AppData/Local/NA-MIC/Slicer 5.0.3/NA-MIC/Extensions-30893/SlicerMorph/lib/Slicer-5.0/qt-scripted-modules/GPA.py”, line 279, in doGpa
self.lm, self.mShape=gpa_lib.runGPA(self.lmOrig)
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\NA-MIC\Extensions-30893\SlicerMorph\lib\Slicer-5.0\qt-scripted-modules\Support\gpa_lib.py”, line 125, in runGPA
allLandmarkSets = procrustesAlign(allLandmarkSets[:,:,0],allLandmarkSets)
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\NA-MIC\Extensions-30893\SlicerMorph\lib\Slicer-5.0\qt-scripted-modules\Support\gpa_lib.py”, line 142, in procrustesAlign
allLandmarkSets[:,:,index] = alignShape(mean, allLandmarkSets[:,:,index])
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\NA-MIC\Extensions-30893\SlicerMorph\lib\Slicer-5.0\qt-scripted-modules\Support\gpa_lib.py”, line 102, in alignShape
u,s,v=sp.svd(np.dot(np.transpose(refShape),shape), full_matrices=True)
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\scipy\linalg_decomp_svd.py”, line 108, in svd
a1 = _asarray_validated(a, check_finite=check_finite)
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\scipy_lib_util.py”, line 287, in _asarray_validated
a = toarray(a)
File “C:\Users\madle\AppData\Local\NA-MIC\Slicer 5.0.3\lib\Python\Lib\site-packages\numpy\lib\function_base.py”, line 603, in asarray_chkfinite
raise ValueError(
ValueError: array must not contain infs or NaNs