def _sphere_to_cartesian(theta, phi, r):
 z = (r * np.sin(phi))
 rcos_phi = (r * np.cos(phi))
 x = (rcos_phi * np.cos(theta))
 y = (rcos_phi * np.sin(theta))
 return (x, y, z)

def _sphere_to_cartesian ( theta , phi , r ) : z = ( r * np . sin ( phi ) ) rcos_phi = ( r * np . cos ( phi ) ) x = ( rcos_phi * np . cos ( theta ) ) y = ( rcos_phi * np . sin ( theta ) ) return ( x , y , z )
convert using old function .