Author: bugman Date: Wed Nov 28 10:15:55 2007 New Revision: 4094 URL: http://svn.gna.org/viewcvs/relax?rev=4094&view=rev Log: Bug fix to the return_residue() and return_spin() functions. When a residue or spin is not identified, then this should correspond to all residues or spins and not none! Modified: 1.3/generic_fns/selection.py Modified: 1.3/generic_fns/selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=4094&r1=4093&r2=4094&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Wed Nov 28 10:15:55 2007 @@ -680,10 +680,6 @@ # Parse the selection string. select_obj = Selection(selection) - # No selection. - if len(select_obj.residues) == 0: - return None - # Loop over the molecules. res = None res_num = 0 @@ -721,7 +717,7 @@ @param pipe: The data pipe containing the spin. Defaults to the current data pipe. @type pipe: str @return: The spin specific data container. - @rtype: instance of the ResidueContainer class. + @rtype: instance of the SpinContainer class. """ # The data pipe. @@ -733,10 +729,6 @@ # Parse the selection string. select_obj = Selection(selection) - - # No selection. - if len(select_obj.spins) == 0: - return None # Loop over the molecules. spin = None