mailr27108 - /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 December 12, 2014 - 12:22:
Author: bugman
Date: Fri Dec 12 12:22:47 2014
New Revision: 27108

URL: http://svn.gna.org/viewcvs/relax?rev=27108&view=rev
Log:
Fix for the selective secondary structure reading of the structure.read_pdb 
user function.

The molecule index needs to incremented by 1 to be the molecule number.


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=27108&r1=27107&r2=27108&view=diff
==============================================================================
--- trunk/lib/structure/internal/object.py      (original)
+++ trunk/lib/structure/internal/object.py      Fri Dec 12 12:22:47 2014
@@ -499,9 +499,9 @@
 
                 # Only load the desired molecule.
                 if read_mol != None:
-                    if self._pdb_chain_id_to_mol_index(init_chain_id) not in 
read_mol:
+                    if self._pdb_chain_id_to_mol_index(init_chain_id)+1 not 
in read_mol:
                         continue
-                    if self._pdb_chain_id_to_mol_index(end_chain_id) not in 
read_mol:
+                    if self._pdb_chain_id_to_mol_index(end_chain_id)+1 not 
in read_mol:
                         continue
 
                 # Store the data.
@@ -516,9 +516,9 @@
 
                 # Only load the desired molecule.
                 if read_mol != None:
-                    if self._pdb_chain_id_to_mol_index(init_chain_id) not in 
read_mol:
+                    if self._pdb_chain_id_to_mol_index(init_chain_id)+1 not 
in read_mol:
                         continue
-                    if self._pdb_chain_id_to_mol_index(end_chain_id) not in 
read_mol:
+                    if self._pdb_chain_id_to_mol_index(end_chain_id)+1 not 
in read_mol:
                         continue
 
                 # Store the data.




Related Messages


Powered by MHonArc, Updated Fri Dec 12 15:40:02 2014