mailr19405 - /trunk/pipe_control/plotting.py


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

Header


Content

Posted by edward on April 08, 2013 - 16:55:
Author: bugman
Date: Mon Apr  8 16:55:19 2013
New Revision: 19405

URL: http://svn.gna.org/viewcvs/relax?rev=19405&view=rev
Log:
Updated the pipe_control.plotting.determine_functions() function.


Modified:
    trunk/pipe_control/plotting.py

Modified: trunk/pipe_control/plotting.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/plotting.py?rev=19405&r1=19404&r2=19405&view=diff
==============================================================================
--- trunk/pipe_control/plotting.py (original)
+++ trunk/pipe_control/plotting.py Mon Apr  8 16:55:19 2013
@@ -28,21 +28,21 @@
 import specific_analyses
 
 
-def determine_functions(category):
+def determine_functions(data_name=None):
     """Determine the specific functions for the given data type.
 
-    @param category:    The data category.
-    @type category:     str
-    @return:            The analysis specific return_value, 
return_conversion_factor, and get_type methods.
+    @keyword data_name: The name of the data or variable to plot.
+    @type data_name:    str
+    @return:            The analysis specific return_value, 
return_conversion_factor, and data_type methods.
     @rtype:             tuple of methods or None
     """
 
-    # Spin category.
-    if category == 'spin':
+    # Spin data.
+    if data_name in ['res_num', 'spin_num']:
         return None, None, None
 
     # A minimisation statistic.
-    if minimise.return_data_name(category):
+    if minimise.return_data_name(data_name):
         return minimise.return_value, minimise.return_conversion_factor, None
 
     # Analysis specific value returning functions.




Related Messages


Powered by MHonArc, Updated Tue Apr 09 16:00:02 2013