Author: bugman Date: Wed Apr 9 14:16:42 2008 New Revision: 5500 URL: http://svn.gna.org/viewcvs/relax?rev=5500&view=rev Log: Bug fix for the exists_mol_res_spin_data() function. The new cdp.mol.is_empty() method is being used to determine if data exists. 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=5500&r1=5499&r2=5500&view=diff ============================================================================== --- 1.3/generic_fns/selection.py (original) +++ 1.3/generic_fns/selection.py Wed Apr 9 14:16:42 2008 @@ -387,16 +387,12 @@ # Alias the data pipe container. cdp = relax_data_store[relax_data_store.current_pipe] - # More than 1 molecule (hence data exists). - if len(cdp.mol) > 1: - return True - - # The single molecule contains data. - if exists_mol_data(cdp.mol[0]): - return True - - # No data! - return False + # The molecule, residue, spin object stack is empty. + if cdp.mol.is_empty(): + return False + + # Otherwise. + return True def exists_mol_data(mol_container):