NEW NODALSUM /usr/lib/python2.7/dist-packages/pyformex/connectivity.py:1093: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 1; dimension is 4 but corresponding boolean dimension is 3 adj[adj[:,:-1] == adj[:,1:]] = -1 #remove duplicate items --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 pyformex_surface.curvature() /usr/lib/python2.7/dist-packages/pyformex/plugins/trisurface.pyc in curvature(self, neighbours) 800 principal directions. 801 """ --> 802 curv = curvature(self.coords,self.elems,self.getEdges(),neighbours=neighbours) 803 return curv 804 /usr/lib/python2.7/dist-packages/pyformex/plugins/trisurface.pyc in curvature(coords, elems, edges, neighbours) 247 # a weight 1/|gi-p| could be used (gi=center of the face fi) 248 p = coords --> 249 n = interpolateNormals(coords,elems,atNodes=True) 250 # double-precision: this will allow us to check the sign of the angles 251 p = p.astype(float64) /usr/lib/python2.7/dist-packages/pyformex/gui/drawable.pyc in interpolateNormals(coords, elems, atNodes, treshold) 843 """ 844 n = geomtools.polygonNormals(coords[elems]) --> 845 n = nodalSum(n,elems,return_all=not atNodes,direction_treshold=treshold) 846 return normalize(n) 847 /usr/lib/python2.7/dist-packages/pyformex/gui/drawable.pyc in nodalSum(val, elems, avg, return_all, direction_treshold) 826 else: 827 print "NEW NODALSUM" --> 828 val = misc.nodalSum(val,elems,elems.max(),avg,return_all) 829 print val.shape 830 return val TypeError: nodalSum() takes exactly 4 arguments (5 given)