def calc_text_angle(start, end):
 text_angle = ((start + end) / 2.0)
 shift_angles = ((text_angle > (np.pi / 2)) & (text_angle < ((3 * np.pi) / 2)))
 text_angle[shift_angles] = (text_angle[shift_angles] + np.pi)
 return text_angle

def calc_text_angle ( start , end ) : text_angle = ( ( start + end ) / 2.0 ) shift_angles = ( ( text_angle > ( np . pi / 2 ) ) & ( text_angle < ( ( 3 * np . pi ) / 2 ) ) ) text_angle [ shift_angles ] = ( text_angle [ shift_angles ] + np . pi ) return text_angle
produce a column of text angle values based on the bounds of the wedge .