Author: bugman Date: Thu Nov 22 18:11:35 2007 New Revision: 3832 URL: http://svn.gna.org/viewcvs/relax?rev=3832&view=rev Log: Actually the read() function was not functional!!! So this is another fix. 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=3832&r1=3831&r2=3832&view=diff ============================================================================== --- 1.3/generic_fns/sequence.py (original) +++ 1.3/generic_fns/sequence.py Thu Nov 22 18:11:35 2007 @@ -102,7 +102,7 @@ # A new molecule. if mol_name_col and cdp.mol[mol_index].name != file_data[i][mol_name_col]: # Replace the first empty molecule. - if mol_index = 0 and cdp.mol[0].name == None: + if mol_index == 0 and cdp.mol[0].name == None: cdp.mol[0].name = file_data[i][mol_name_col] # Create a new molecule. @@ -116,7 +116,7 @@ # A new residue. if res_name_col and cdp.mol[mol_index].res[res_index].name != file_data[i][res_name_col]: # Replace the first empty residue. - if res_index = 0 and cdp.mol[mol_index].res[0].name == None: + 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] cdp.mol[mol_index].res[0].num = int(file_data[i][res_num_col])