mailr16117 - /branches/uf_redesign/user_functions/align_tensor.py


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

Header


Content

Posted by edward on May 08, 2012 - 19:00:
Author: bugman
Date: Tue May  8 19:00:36 2012
New Revision: 16117

URL: http://svn.gna.org/viewcvs/relax?rev=16117&view=rev
Log:
The align_tensor.init param_types arg is now a ComboBox with the choices in 
the GUI.


Modified:
    branches/uf_redesign/user_functions/align_tensor.py

Modified: branches/uf_redesign/user_functions/align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/align_tensor.py?rev=16117&r1=16116&r2=16117&view=diff
==============================================================================
--- branches/uf_redesign/user_functions/align_tensor.py (original)
+++ branches/uf_redesign/user_functions/align_tensor.py Tue May  8 19:00:36 
2012
@@ -226,13 +226,34 @@
         desc = "The units for the angle parameters."
 )
 uf.add_keyarg(
-        name = "param_types",
-        default = 0,
-        py_type = "int",
-        desc_short = "parameter types",
-        desc = "A flag to select different parameter combinations."
-)
-
+    name = "param_types",
+    default = 2,
+    py_type = "int",
+    desc_short = "parameter types",
+    desc = "A flag to select different parameter combinations.",
+    wiz_element_type = "combo",
+    wiz_combo_choices = [
+        "{Sxx, Syy, Sxy, Sxz, Syz}",
+        "{Szz, Sxx-yy, Sxy, Sxz, Syz}",
+        "{Axx, Ayy, Axy, Axz, Ayz}",
+        "{Azz, Axx-yy, Axy, Axz, Ayz}",
+        "{Axx, Ayy, Axy, Axz, Ayz}",
+        "{Azz, Axx-yy, Axy, Axz, Ayz}",
+        "{Pxx, Pyy, Pxy, Pxz, Pyz}",
+        "{Pzz, Pxx-yy, Pxy, Pxz, Pyz}"
+    ],
+    wiz_combo_data = [
+        0,
+        1,
+        2,
+        3,
+        4,
+        5,
+        6,
+        7
+    ],
+    wiz_read_only = True
+)
 uf.add_keyarg(
         name = "errors",
         default = False,




Related Messages


Powered by MHonArc, Updated Tue May 08 19:20:02 2012