for MEG sensor (magnetometer and gradiometer),How to set the direction

hello, everyone,
if the MEG sensor direction (n1,n2,n3) is known, how to set in MNE? In MNE, the direction of raw.info[‘chs’][chs_number][‘loc’][3:12] has 9 parameter,How to convert from (n1,n2,n3) to info[‘chs’][chs_number][‘loc’][3:12]?