mailr22136 - /trunk/lib/structure/internal/object.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 05, 2014 - 17:33:
Author: bugman
Date: Wed Feb  5 17:33:42 2014
New Revision: 22136

URL: http://svn.gna.org/viewcvs/relax?rev=22136&view=rev
Log:
The internal structure object method _pdb_chain_id_to_mol_index() now uses 
the CHAIN_ID_LIST string.

This allows for the full PDB chain ID range to be supported.


Modified:
    trunk/lib/structure/internal/object.py

Modified: trunk/lib/structure/internal/object.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/object.py?rev=22136&r1=22135&r2=22136&view=diff
==============================================================================
--- trunk/lib/structure/internal/object.py (original)
+++ trunk/lib/structure/internal/object.py Wed Feb  5 17:33:42 2014
@@ -29,7 +29,6 @@
 from os import F_OK, access, curdir, sep
 from os.path import abspath
 from re import search
-from string import ascii_uppercase
 from warnings import warn
 
 # relax module imports.
@@ -715,7 +714,7 @@
 
         # Convert to the molecule index.
         if chain_id:
-            mol_index = ascii_uppercase.index(chain_id)
+            mol_index = CHAIN_ID_LIST.index(chain_id)
 
         # Return the index.
         return mol_index




Related Messages


Powered by MHonArc, Updated Wed Feb 05 17:40:02 2014