def lattice_array_to_unit_cell(lattice_array):
cell_lengths = np.sqrt(np.sum(lattice_array**<NUM_LIT:2>, axis=<NUM_LIT:0>))<EOL>gamma_r = np.arccos(lattice_array[<NUM_LIT:0>][<NUM_LIT:1>] / cell_lengths[<NUM_LIT:1>])<EOL>beta_r = np.arccos(lattice_array[<NUM_LIT:0>][<NUM_LIT:2>] / cell_lengths[<NUM_LIT:2>])<EOL>alpha_r = np.arccos(<EOL>lattice_array[<NUM_LIT:1>][<NUM_LIT:2>] * np.sin(gamma_r) / cell_lengths[<NUM_LIT:2>]<EOL>+ np.cos(beta_r) * np.cos(gamma_r)<EOL>)<EOL>cell_angles = [<EOL>np.rad2deg(alpha_r), np.rad2deg(beta_r), np.rad2deg(gamma_r)<EOL>]<EOL>return np.append(cell_lengths, cell_angles)<EOL>
Return crystallographic param. from unit cell lattice matrix.