Author: bugman Date: Thu Mar 27 11:32:40 2008 New Revision: 5236 URL: http://svn.gna.org/viewcvs/relax?rev=5236&view=rev Log: Fix for bug #11378 (https://gna.org/bugs/?11378). This bug was reported by Ryan Hoffman (https://gna.org/users/rydog). The fix for the 1.3 line is very different to that for the 1.2 line. These functions have changed significantly, and the pdb() user function doesn't exist any more! The concept is similar though. The xh_vect variable is now set to None rather than being non-existant, and the spin is deselected. Modified: 1.3/generic_fns/structure.py Modified: 1.3/generic_fns/structure.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure.py?rev=5236&r1=5235&r2=5236&view=diff ============================================================================== --- 1.3/generic_fns/structure.py (original) +++ 1.3/generic_fns/structure.py Thu Mar 27 11:32:40 2008 @@ -1225,8 +1225,11 @@ vector = xh_vector(spin) # Set the vector. - if vector != None: - spin.xh_vect = vector + spin.xh_vect = vector + + # Deselect the spin if the vector doesn't exist. + if vector == None: + spin.select = False def uniform_vect_dist_spherical_angles(inc=20):