mailr22675 - /trunk/specific_analyses/frame_order/parameters.py


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

Header


Content

Posted by edward on April 10, 2014 - 13:51:
Author: bugman
Date: Thu Apr 10 13:51:26 2014
New Revision: 22675

URL: http://svn.gna.org/viewcvs/relax?rev=22675&view=rev
Log:
Huge simplification of specific_analyses.frame_order.parameters.param_num().

This now simply calls update_model() and then returns the length of 
cdp.params.


Modified:
    trunk/specific_analyses/frame_order/parameters.py

Modified: trunk/specific_analyses/frame_order/parameters.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/frame_order/parameters.py?rev=22675&r1=22674&r2=22675&view=diff
==============================================================================
--- trunk/specific_analyses/frame_order/parameters.py   (original)
+++ trunk/specific_analyses/frame_order/parameters.py   Thu Apr 10 13:51:26 
2014
@@ -111,63 +111,11 @@
     @rtype:     int
     """
 
-    # Init.
-    num = 0
-
-    # Update the model if needed.
+    # Update the model, just in case.
     update_model()
 
-    # Determine the data type.
-    data_types = base_data_types()
-
-    # Average domain position translation.
-    if not translation_fixed():
-        num += 3
-
-    # The pivot point.
-    if not pivot_fixed():
-        num += 3
-
-    # Average domain position parameters.
-    if cdp.model in ['free rotor', 'iso cone, free rotor']:
-        num += 2
-    else:
-        num += 3
-
-    # Frame order eigenframe - the full frame.
-    if cdp.model in ['pseudo-ellipse', 'pseudo-ellipse, torsionless', 
'pseudo-ellipse, free rotor']:
-        num += 3
-
-    # Frame order eigenframe - the isotropic cone axis.
-    elif cdp.model in ['iso cone', 'free rotor', 'iso cone, torsionless', 
'iso cone, free rotor', 'double rotor']:
-        num += 2
-
-    # Frame order eigenframe - the second rotation axis.
-    if cdp.model in ['double rotor']:
-        num += 2
-
-    # Frame order eigenframe - the rotor axis alpha angle.
-    if cdp.model in ['rotor']:
-        num += 1
-
-    # Cone parameters - pseudo-elliptic cone parameters.
-    if cdp.model in ['pseudo-ellipse', 'pseudo-ellipse, torsionless', 
'pseudo-ellipse, free rotor']:
-        num += 2
-
-    # Cone parameters - single isotropic angle or order parameter.
-    elif cdp.model in ['iso cone', 'iso cone, torsionless', 'iso cone, free 
rotor']:
-        num += 1
-
-    # Cone parameters - torsion angle.
-    if cdp.model in ['double rotor', 'rotor', 'line', 'iso cone', 
'pseudo-ellipse']:
-        num += 1
-
-    # Cone parameters - 2nd torsion angle.
-    if cdp.model in ['double rotor']:
-        num += 1
-
-    # Return the number.
-    return num
+    # Simple parameter list count.
+    return len(cdp.params)
 
 
 def update_model():




Related Messages


Powered by MHonArc, Updated Thu Apr 10 14:40:01 2014