def mag(vec):
        mag = sqrt(vec[0]**2 + vec[1]**2 + vec[2]**2)
        return mag
Function computes and returns the magnitude of a vector
dataset/ETHPy150Open enthought/mayavi/tvtk/tools/visual.py/MVector.mag