Author: bugman Date: Fri Sep 26 11:59:07 2008 New Revision: 7324 URL: http://svn.gna.org/viewcvs/relax?rev=7324&view=rev Log: Fix for the model-free duplicate_data() method for when the data pipe is empty. Modified: 1.3/specific_fns/model_free/main.py Modified: 1.3/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=7324&r1=7323&r2=7324&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Fri Sep 26 11:59:07 2008 @@ -1028,6 +1028,10 @@ # The data must match! if data_from != data_to: raise RelaxError, "The object " + `data_name` + "." + `data_name` + " is not consistent between the pipes " + `pipe_from` + " and " + `pipe_to` + "." + + # No sequence data, so skip the rest. + if not exists_mol_res_spin_data(): + return # Determine the model type. model_type = self.determine_model_type()