Author: bugman Date: Wed Jan 4 10:10:55 2012 New Revision: 15136 URL: http://svn.gna.org/viewcvs/relax?rev=15136&view=rev Log: Fix for the get_pos() function for the change in the atom_loop() API method. Modified: branches/frame_order_testing/generic_fns/structure/main.py Modified: branches/frame_order_testing/generic_fns/structure/main.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/generic_fns/structure/main.py?rev=15136&r1=15135&r2=15136&view=diff ============================================================================== --- branches/frame_order_testing/generic_fns/structure/main.py (original) +++ branches/frame_order_testing/generic_fns/structure/main.py Wed Jan 4 10:10:55 2012 @@ -261,12 +261,7 @@ continue # Add the position vector to the spin container. - if ave_pos: - spin_cont.pos = pos - else: - if not hasattr(spin_cont, 'pos'): - spin_cont.pos = [] - spin_cont.pos.append(pos) + spin_cont.pos = pos # Update pseudo-atoms. for spin in spin_loop(): @@ -282,7 +277,7 @@ raise RelaxNoSpinError(atom) # Test the position. - if not hasattr(subspin, 'pos') or not subspin.pos: + if not hasattr(subspin, 'pos') or subspin.pos == None or not len(subspin.pos): raise RelaxError("Positional information is not available for the atom '%s'." % atom) # Alias the position.