Author: bugman Date: Thu Feb 21 17:25:16 2008 New Revision: 5115 URL: http://svn.gna.org/viewcvs/relax?rev=5115&view=rev Log: Bug fix for the generic_fns.sequence.load_PDB_sequence() function. The function no longer fails if a chain or segment id is present in the PDB file. 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=5115&r1=5114&r2=5115&view=diff ============================================================================== --- 1.3/generic_fns/sequence.py (original) +++ 1.3/generic_fns/sequence.py Thu Feb 21 17:25:16 2008 @@ -111,12 +111,12 @@ if mol_name: # Replace the first empty molecule. if mol_index == 0 and cdp.mol[0].name == None: - cdp.mol[0].name = chain.name + cdp.mol[0].name = mol_name # Create a new molecule. else: # Add the molecule. - cdp.mol.add_item(mol_name=chain.name) + cdp.mol.add_item(mol_name=mol_name) # Loop over the residues. for res in chain.residues: