def _get_bti_dev_t(adjust=0.0, translation=(0.0, 0.02, 0.11)):
 flip_t = np.array([[0.0, (-1.0), 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, 1.0]])
 rad = np.deg2rad(adjust)
 adjust_t = np.array([[1.0, 0.0, 0.0], [0.0, np.cos(rad), (- np.sin(rad))], [0.0, np.sin(rad), np.cos(rad)]])
 m_nm_t = np.eye(4)
 m_nm_t[:3, :3] = np.dot(flip_t, adjust_t)
 m_nm_t[:3, 3] = translation
 return m_nm_t

def _get_bti_dev_t ( adjust = 0.0 , translation = ( 0.0 , 0.02 , 0.11 ) ) : flip_t = np . array ( [ [ 0.0 , ( - 1.0 ) , 0.0 ] , [ 1.0 , 0.0 , 0.0 ] , [ 0.0 , 0.0 , 1.0 ] ] ) rad = np . deg2rad ( adjust ) adjust_t = np . array ( [ [ 1.0 , 0.0 , 0.0 ] , [ 0.0 , np . cos ( rad ) , ( - np . sin ( rad ) ) ] , [ 0.0 , np . sin ( rad ) , np . cos ( rad ) ] ] ) m_nm_t = np . eye ( 4 ) m_nm_t [ : 3 , : 3 ] = np . dot ( flip_t , adjust_t ) m_nm_t [ : 3 , 3 ] = translation return m_nm_t
get the general magnes3600wh to neuromag coordinate transform .