mailr4962 - /branches/N_state_model/specific_fns/n_state_model.py


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

Header


Content

Posted by edward on February 12, 2008 - 17:45:
Author: bugman
Date: Tue Feb 12 17:45:22 2008
New Revision: 4962

URL: http://svn.gna.org/viewcvs/relax?rev=4962&view=rev
Log:
Wrote the specific_fns.n_state_model.pivot_point() function.


Modified:
    branches/N_state_model/specific_fns/n_state_model.py

Modified: branches/N_state_model/specific_fns/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/specific_fns/n_state_model.py?rev=4962&r1=4961&r2=4962&view=diff
==============================================================================
--- branches/N_state_model/specific_fns/n_state_model.py (original)
+++ branches/N_state_model/specific_fns/n_state_model.py Tue Feb 12 17:45:22 
2008
@@ -546,6 +546,24 @@
         return (cdp.N - 1) + cdp.N*3
 
 
+    def pivot_point(self, pivot=None):
+        """Function for setting the pivot point of the domain motions.
+
+        @param pivot:   The pivot point in the structural file(s).
+        @type pivot:    list of float of length 3
+        """
+
+        # Test if the current data pipe exists.
+        if not relax_data_store.current_pipe:
+            raise RelaxNoPipeError
+
+        # Alias the current data pipe.
+        cdp = relax_data_store[relax_data_store.current_pipe]
+
+        # Set the value.
+        cdp.pivot_point = pivot
+
+
     def return_data_name(self, name, index=False):
         """
         N-state model data type string matching patterns




Related Messages


Powered by MHonArc, Updated Wed Feb 13 09:20:37 2008