mailr22061 - /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 29, 2014 - 09:08:
Author: bugman
Date: Wed Jan 29 09:08:33 2014
New Revision: 22061

URL: http://svn.gna.org/viewcvs/relax?rev=22061&view=rev
Log:
The save file created by the frame order test data generation base script can 
now be bypassed.

When loading 1,000,000 PDB structures as models into the relax data store, 
the RAM usage can go over
10 Gb.  When trying to save this into a relax state file with the state.save 
user function, the time
required can be over a day.  Therefore the SAVE_STATE class variable has been 
introduced to allow
the state.save call to be bypassed.


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=22061&r1=22060&r2=22061&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 29 09:08:33 2014
@@ -64,6 +64,9 @@
     # The rotations file.
     ROT_FILE = True
 
+    # The state file.
+    SAVE_STATE = True
+
     def run(self, save_path=None):
         """Generate the distribution and alignment data.
         
@@ -95,7 +98,8 @@
         self._back_calc()
 
         # Save a state file for debugging.
-        self.interpreter.state.save('generate_distribution', 
dir=self.save_path, force=True)
+        if self.SAVE_STATE:
+            self.interpreter.state.save('generate_distribution', 
dir=self.save_path, force=True)
 
 
     def _back_calc(self):




Related Messages


Powered by MHonArc, Updated Wed Jan 29 11:40:01 2014