Author: bugman Date: Mon Jan 31 19:57:00 2011 New Revision: 12478 URL: http://svn.gna.org/viewcvs/relax?rev=12478&view=rev Log: Model-free saveframes without any data are now skipped. Modified: branches/bmrb/specific_fns/model_free/bmrb.py Modified: branches/bmrb/specific_fns/model_free/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=12478&r1=12477&r2=12478&view=diff ============================================================================== --- branches/bmrb/specific_fns/model_free/bmrb.py (original) +++ branches/bmrb/specific_fns/model_free/bmrb.py Mon Jan 31 19:57:00 2011 @@ -120,10 +120,15 @@ setattr(cdp, 'chi2', data['global_chi2']) # The number of spins. + N = 0 if data['data_ids']: N = len(data['data_ids']) elif data['s2']: N = len(data['s2']) + + # No data in the saveframe. + if N == 0: + continue # Generate the spin IDs. spin_ids = []