Author: bugman Date: Tue Nov 19 17:09:19 2013 New Revision: 21528 URL: http://svn.gna.org/viewcvs/relax?rev=21528&view=rev Log: The 'MMQ 2-site' dispersion model can now be optimised if no heteronuclear R2eff data is loaded. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=21528&r1=21527&r2=21528&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Tue Nov 19 17:09:19 2013 @@ -2063,6 +2063,7 @@ spin_id = spin_ids[spin_index] # Get the attached proton. + proton = None if proton_mmq_flag: # Get all protons. proton_spins = return_attached_protons(spin_id) @@ -2079,7 +2080,7 @@ proton = proton_spins[0] # No data. - if not hasattr(spin, 'r2eff'): + if not hasattr(spin, 'r2eff') and not hasattr(proton, 'r2eff'): continue data_flag = True