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. _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits