mailr9912 - in /1.3: prompt/model_free.py specific_fns/model_free/main.py


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

Header


Content

Posted by edward on November 24, 2009 - 12:59:
Author: bugman
Date: Tue Nov 24 12:59:22 2009
New Revision: 9912

URL: http://svn.gna.org/viewcvs/relax?rev=9912&view=rev
Log:
Converted the _select_model() method to be private, removing it from the API.


Modified:
    1.3/prompt/model_free.py
    1.3/specific_fns/model_free/main.py

Modified: 1.3/prompt/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/model_free.py?rev=9912&r1=9911&r2=9912&view=diff
==============================================================================
--- 1.3/prompt/model_free.py (original)
+++ 1.3/prompt/model_free.py Tue Nov 24 12:59:22 2009
@@ -339,4 +339,4 @@
         check.is_str(spin_id, 'spin identification string', can_be_none=True)
 
         # Execute the functional code.
-        model_free_obj.select_model(model=model, spin_id=spin_id)
+        model_free_obj._select_model(model=model, spin_id=spin_id)

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=9912&r1=9911&r2=9912&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Tue Nov 24 12:59:22 2009
@@ -2364,11 +2364,9 @@
 
 
     def return_units(self, param, spin=None, spin_id=None):
-        """Function for returning a string representing the parameters units.
-
-        For example, the internal representation of te is in seconds, 
whereas the external
-        representation is in picoseconds, therefore this function will 
return the string
-        'picoseconds' for te.
+        """Return a string representing the parameters units.
+
+        For example, the internal representation of te is in seconds, 
whereas the external representation is in picoseconds, therefore this 
function will return the string 'picoseconds' for te.
 
 
         @param param:   The name of the parameter to return the units string 
for.
@@ -2415,7 +2413,7 @@
             return 'ppm'
 
 
-    def select_model(self, model=None, spin_id=None):
+    def _select_model(self, model=None, spin_id=None):
         """Function for the selection of a preset model-free model.
 
         @param model:   The name of the model.
@@ -3062,8 +3060,7 @@
     def sim_pack_data(self, spin_id, sim_data):
         """Pack the Monte Carlo simulation data.
 
-        @param spin_id:     The spin identification string, as yielded by 
the base_data_loop()
-                            generator method.
+        @param spin_id:     The spin identification string, as yielded by 
the base_data_loop() generator method.
         @type spin_id:      str
         @param sim_data:    The Monte Carlo simulation data.
         @type sim_data:     list of float




Related Messages


Powered by MHonArc, Updated Tue Nov 24 13:20:03 2009