Author: bugman Date: Tue Mar 3 17:46:21 2015 New Revision: 27766 URL: http://svn.gna.org/viewcvs/relax?rev=27766&view=rev Log: Fix for the pcs.corr_plot user function when the spin containers have no element information. Modified: trunk/pipe_control/pcs.py Modified: trunk/pipe_control/pcs.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/pcs.py?rev=27766&r1=27765&r2=27766&view=diff ============================================================================== --- trunk/pipe_control/pcs.py (original) +++ trunk/pipe_control/pcs.py Tue Mar 3 17:46:21 2015 @@ -428,7 +428,10 @@ # The spin types. types = [] for spin in spin_loop(): - if spin.element not in types: + if not hasattr(spin, 'element'): + if None not in types: + types.append(None) + elif spin.element not in types: types.append(spin.element) # Loop over the PCS data. @@ -459,7 +462,7 @@ continue # Incorrect spin type. - if spin.element != types[i]: + if hasattr(spin, 'element') and spin.element != types[i]: continue # Skip if data is missing.