Author: bugman Date: Tue Apr 15 18:56:57 2014 New Revision: 22776 URL: http://svn.gna.org/viewcvs/relax?rev=22776&view=rev Log: Divide by zero avoidance fix for the rotor frame order model module lib.frame_order.rotor. Modified: trunk/lib/frame_order/rotor.py Modified: trunk/lib/frame_order/rotor.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/frame_order/rotor.py?rev=22776&r1=22775&r2=22776&view=diff ============================================================================== --- trunk/lib/frame_order/rotor.py (original) +++ trunk/lib/frame_order/rotor.py Tue Apr 15 18:56:57 2014 @@ -180,6 +180,9 @@ # Calculate the PCS and error. for i in range(len(pcs_theta)): for j in range(len(pcs_theta[i])): + if num == 0: + continue + # The average PCS. pcs_theta[i, j] = c[i] * pcs_theta[i, j] / float(num)