Author: bugman Date: Fri Nov 21 10:37:46 2008 New Revision: 8007 URL: http://svn.gna.org/viewcvs/relax?rev=8007&view=rev Log: Modified the NOE overfit_deselect() for the new peak intensity data structures. Modified: branches/spectral_errors/specific_fns/noe.py Modified: branches/spectral_errors/specific_fns/noe.py URL: http://svn.gna.org/viewcvs/relax/branches/spectral_errors/specific_fns/noe.py?rev=8007&r1=8006&r2=8007&view=diff ============================================================================== --- branches/spectral_errors/specific_fns/noe.py (original) +++ branches/spectral_errors/specific_fns/noe.py Fri Nov 21 10:37:46 2008 @@ -108,7 +108,11 @@ # Loop over spin data. for spin in spin_loop(): # Check for sufficient data. - if not (hasattr(spin, 'ref') and hasattr(spin, 'sat') and hasattr(spin, 'ref_err') and hasattr(spin, 'sat_err')): + if not hasattr(spin, 'intensities') or not len(spin.intensities) == 2: + spin.select = False + + # Check for sufficient errors. + if not hasattr(spin, 'intensity_err') or not len(spin.intensity_err) == 2: spin.select = False