mdtraj2oripot# torchspin.mdtraj2oripot(frame_traj, n_bins=90)[source]# Convert frame trajectory to orientation potential. Parameters: frame_traj (ndarray, shape (3, 3, nSteps)) – Label frame rotation matrices at each time step. n_bins (int or tuple of 3 ints) – Number of histogram bins per Euler angle. Returns: potential (ndarray, shape (nBinsPhi+1, nBinsTheta+1, nBinsPsi+1)) – Orientation potential: -log(pdf). pdf (ndarray) – Normalized 3D histogram of Euler angles. Return type: Tuple[ndarray, ndarray]