Author: bugman Date: Fri Sep 12 18:07:20 2014 New Revision: 25811 URL: http://svn.gna.org/viewcvs/relax?rev=25811&view=rev Log: Fix for the Pseudo_elliptic cone object for when the cone angles are zero. The Pseudo_elliptic.phi_max() method now avoids a divide by zero error. Modified: branches/frame_order_cleanup/lib/structure/cones.py Modified: branches/frame_order_cleanup/lib/structure/cones.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/lib/structure/cones.py?rev=25811&r1=25810&r2=25811&view=diff ============================================================================== --- branches/frame_order_cleanup/lib/structure/cones.py (original) +++ branches/frame_order_cleanup/lib/structure/cones.py Fri Sep 12 18:07:20 2014 @@ -257,6 +257,10 @@ @rtype: float """ + # Zero value handling. + if self._phi_x == 0.0 or self._phi_y == 0.0: + return 0.0 + # Determine phi_max. phi_max = 1.0/sqrt(((1.0/self._phi_x) * cos(theta))**2 + ((1.0/self._phi_y) * sin(theta))**2)