Author: bugman Date: Fri Dec 21 10:26:50 2007 New Revision: 4231 URL: http://svn.gna.org/viewcvs/relax?rev=4231&view=rev Log: Bug fix for the generic_fns.align_tensor.svd() function. If there are less than 5 alignment tensors, then the number of singular values is less than five. This is now handled. Modified: branches/N_state_model/generic_fns/align_tensor.py Modified: branches/N_state_model/generic_fns/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/generic_fns/align_tensor.py?rev=4231&r1=4230&r2=4231&view=diff ============================================================================== --- branches/N_state_model/generic_fns/align_tensor.py (original) +++ branches/N_state_model/generic_fns/align_tensor.py Fri Dec 21 10:26:50 2007 @@ -1229,14 +1229,11 @@ cdp.align_tensor.singular_vals = s # Calculate and store the condition number. - cdp.align_tensor.cond_num = s[0] / s[4] + cdp.align_tensor.cond_num = s[0] / s[-1] # Print out. print "\nData pipe: " + `relax_data_store.current_pipe` print "\nSingular values:" - print "\t" + `s[0]` - print "\t" + `s[1]` - print "\t" + `s[2]` - print "\t" + `s[3]` - print "\t" + `s[4]` + for val in s: + print "\t" + `val` print "\nCondition number: " + `cdp.align_tensor.cond_num`