Author: bugman Date: Tue Mar 19 17:02:52 2013 New Revision: 18888 URL: http://svn.gna.org/viewcvs/relax?rev=18888&view=rev Log: Modified the ScientificPython structural object atom_loop() method to match the internal object. If only one element is returned from the atom_loop(), then this is returned as a single item rather than a tuple of length 1. Modified: trunk/generic_fns/structure/scientific.py Modified: trunk/generic_fns/structure/scientific.py URL: http://svn.gna.org/viewcvs/relax/trunk/generic_fns/structure/scientific.py?rev=18888&r1=18887&r2=18888&view=diff ============================================================================== --- trunk/generic_fns/structure/scientific.py (original) +++ trunk/generic_fns/structure/scientific.py Tue Mar 19 17:02:52 2013 @@ -283,6 +283,8 @@ atomic_tuple = atomic_tuple + (pos,) # Yield the information. + if len(atomic_tuple) == 1: + atomic_tuple = atomic_tuple[0] yield atomic_tuple # Break out of the loop if the ave flag is set, as data from only one model is used.