mailr23336 - /trunk/test_suite/system_tests/structure.py


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

Header


Content

Posted by edward on May 22, 2014 - 15:39:
Author: bugman
Date: Thu May 22 15:39:21 2014
New Revision: 23336

URL: http://svn.gna.org/viewcvs/relax?rev=23336&view=rev
Log:
Created the Structure.test_bug_22070_structure_superimpose_after_deletion 
system test.

This is to catch bug #22070 (https://gna.org/bugs/index.php?22070), the 
failure of the
structure.superimpose user function after deleting atoms with 
structure.delete.


Modified:
    trunk/test_suite/system_tests/structure.py

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=23336&r1=23335&r2=23336&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu May 22 15:39:21 2014
@@ -207,6 +207,23 @@
 
         # Delete the calciums.
         self.interpreter.structure.delete(atom_id='@CA')
+
+
+    def test_bug_22070_structure_superimpose_after_deletion(self):
+        """Catch U{bug #22070<https://gna.org/bugs/?22070>}, the failure of 
the structure.superimpose user function after deleting atoms with 
structure.delete."""
+
+        # Path of the structure file.
+        path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'frame_order'+sep+'cam'
+
+        # Load the structures to superimpose.
+        self.interpreter.structure.read_pdb('1J7P_1st_NH.pdb', dir=path, 
set_mol_name='C-dom', set_model_num=1)
+        self.interpreter.structure.read_pdb('1J7P_1st_NH_rot.pdb', dir=path, 
set_mol_name='C-dom', set_model_num=2)
+
+        # Delete the calciums.
+        self.interpreter.structure.delete(atom_id='@CA')
+
+        # Superimpose.
+        self.interpreter.structure.superimpose(method='fit to first', 
centre_type='CoM')
 
 
     def test_delete_empty(self):




Related Messages


Powered by MHonArc, Updated Thu May 22 16:20:02 2014