mailr22040 - /branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py


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

Header


Content

Posted by edward on January 22, 2014 - 11:19:
Author: bugman
Date: Wed Jan 22 11:19:22 2014
New Revision: 22040

URL: http://svn.gna.org/viewcvs/relax?rev=22040&view=rev
Log:
The Frame Order test data generation base script now loads all structures 
before rotating them.

This allows the progress printout to function correctly by not having any 
user function printouts
as the rotations are occurring.


Modified:
    
branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py

Modified: 
branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py?rev=22040&r1=22039&r2=22040&view=diff
==============================================================================
--- 
branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py 
(original)
+++ 
branches/double_rotor/test_suite/shared_data/frame_order/cam/generate_base.py 
Wed Jan 22 11:19:22 2014
@@ -180,14 +180,17 @@
         sys.stdout.write("\n\nRotating %s states:\n\n" % self.N)
 
         # Load N copies of the original C-domain.
+        if self.DIST_PDB:
+            # Loop over the N states.
+            for i in range(self.N):
+                # Load the structure for the PDB distribution.
+                self.interpreter.structure.read_pdb('1J7P_1st_NH.pdb', 
dir=self.path, set_mol_name='C-dom', set_model_num=i+1)
+
+        # Loop over the N states.
         self.interpreter.off()
         for i in range(self.N):
             # Print out.
             self._progress(i)
-
-            # Load the structure for the PDB distribution.
-            if self.DIST_PDB:
-                self.interpreter.structure.read_pdb('1J7P_1st_NH.pdb', 
dir=self.path, set_mol_name='C-dom', set_model_num=i+1)
 
             # Generate the distribution specific rotation.
             self.rotation(i)




Related Messages


Powered by MHonArc, Updated Thu Jan 23 14:40:02 2014