def cr2me( self, vec ):
        """
        Transformation from cartesian to spherical
        vec must be in cartesian coordinates: [x, y, z]
        """
        h = vec[0] ** 2 + vec[1] ** 2
        T = np.array([\
            [ np.sqrt( h + vec[2] ** 2 ),     ZER,   ZER ],
            [ ZER, np.arctan( vec[2] / np.sqrt(h) ),   ZER ],
            [ ZER,       ZER, np.arctan( vec[1] / vec[0] ) ]]) 
        tmp = np.array([ 1, 1, 1], dtype=FLOAT)
        return np.dot( T, tmp )
dataset/ETHPy150Open saullocastro/mapy/mapy/model/coords.py/CoordS.cr2me/swapped operands of `/`