Author: bugman Date: Wed Nov 28 11:46:49 2007 New Revision: 4109 URL: http://svn.gna.org/viewcvs/relax?rev=4109&view=rev Log: Big bug fix for generic_fns.sequence.read(). If 2 or more sequential residues had the same name, only the first would be added to the sequence! Modified: 1.3/generic_fns/sequence.py Modified: 1.3/generic_fns/sequence.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/sequence.py?rev=4109&r1=4108&r2=4109&view=diff ============================================================================== --- 1.3/generic_fns/sequence.py (original) +++ 1.3/generic_fns/sequence.py Wed Nov 28 11:46:49 2007 @@ -184,7 +184,7 @@ mol_index = mol_index + 1 # A new residue. - if res_name_col and cdp.mol[mol_index].res[res_index].name != file_data[i][res_name_col]: + if res_name_col and cdp.mol[mol_index].res[res_index].num != file_data[i][res_num_col]: # Replace the first empty residue. if res_index == 0 and cdp.mol[mol_index].res[0].name == None: cdp.mol[mol_index].res[0].name = file_data[i][res_name_col]