Author: bugman Date: Wed Jan 21 17:53:00 2009 New Revision: 8556 URL: http://svn.gna.org/viewcvs/relax?rev=8556&view=rev Log: Found and fixed the biggest pain in the ass bug ever (after 2 days of debugging)! The model-free model index 'model_index' which was being passed into duplicate_data() was being overwritten by the loop over structural models, which was also using 'model_index'!!! Modified: branches/multi_structure/specific_fns/model_free/main.py Modified: branches/multi_structure/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_structure/specific_fns/model_free/main.py?rev=8556&r1=8555&r2=8556&view=diff ============================================================================== --- branches/multi_structure/specific_fns/model_free/main.py (original) +++ branches/multi_structure/specific_fns/model_free/main.py Wed Jan 21 17:53:00 2009 @@ -1137,10 +1137,10 @@ raise RelaxError, "The number of structural models is not consistent between the pipes " + `pipe_from` + " and " + `pipe_to` + "." # Loop over the models. - for model_index in range(len(dp_from.structure.structural_data)): + for i in range(len(dp_from.structure.structural_data)): # Alias. - model_from = dp_from.structure.structural_data[model_index] - model_to = dp_to.structure.structural_data[model_index] + model_from = dp_from.structure.structural_data[i] + model_to = dp_to.structure.structural_data[i] # Model numbers. if model_from.num != model_to.num: