mailr17971 - in /trunk/user_functions: pcs.py rdc.py


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

Header


Content

Posted by edward on November 14, 2012 - 17:23:
Author: bugman
Date: Wed Nov 14 17:23:10 2012
New Revision: 17971

URL: http://svn.gna.org/viewcvs/relax?rev=17971&view=rev
Log:
Reactivated the rdc.copy and pcs.copy user function front-ends.

The backends are missing, so relax is currently broken.


Modified:
    trunk/user_functions/pcs.py
    trunk/user_functions/rdc.py

Modified: trunk/user_functions/pcs.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/user_functions/pcs.py?rev=17971&r1=17970&r2=17971&view=diff
==============================================================================
--- trunk/user_functions/pcs.py (original)
+++ trunk/user_functions/pcs.py Wed Nov 14 17:23:10 2012
@@ -96,56 +96,55 @@
 uf.wizard_apply_button = False
 
 
-# No backend!
-## The pcs.copy user function.
-#uf = uf_info.add_uf('pcs.copy')
-#uf.title = "Copy PCS data from one data pipe to another."
-#uf.title_short = "PCS copying."
-#uf.add_keyarg(
-#    name = "pipe_from",
-#    py_type = "str",
-#    desc_short = "source pipe",
-#    desc = "The name of the pipe to copy the PCS data from.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = pipes.pipe_names,
-#    can_be_none = True
-#)
-#uf.add_keyarg(
-#    name = "pipe_to",
-#    py_type = "str",
-#    desc_short = "destination pipe",
-#    desc = "The name of the pipe to copy the PCS data to.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = pipes.pipe_names,
-#    can_be_none = True
-#)
-#uf.add_keyarg(
-#    name = "align_id",
-#    py_type = "str",
-#    desc_short = "alignment ID string",
-#    desc = "The alignment ID string.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = align_tensor.get_ids,
-#    wiz_read_only = True,
-#    can_be_none = True
-#)
-## Description.
-#uf.desc.append(Desc_container())
-#uf.desc[-1].add_paragraph("This function will copy PCS data from 
'pipe_from' to 'pipe_to'.  If align_id is not given then all PCS data will be 
copied, otherwise only a specific data set will be.")
-## Prompt examples.
-#uf.desc.append(Desc_container("Prompt examples"))
-#uf.desc[-1].add_paragraph("To copy all PCS data from pipe 'm1' to pipe 
'm9', type one of:")
-#uf.desc[-1].add_prompt("relax> pcs.copy('m1', 'm9')")
-#uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m1', pipe_to='m9')")
-#uf.desc[-1].add_prompt("relax> pcs.copy('m1', 'm9', None)")
-#uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m1', pipe_to='m9', 
align_id=None)")
-#uf.desc[-1].add_paragraph("To copy only the 'Th' PCS data from 'm3' to 
'm6', type one of:")
-#uf.desc[-1].add_prompt("relax> pcs.copy('m3', 'm6', 'Th')")
-#uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m3', pipe_to='m6', 
align_id='Th')")
-#uf.backend = pcs.copy
-#uf.menu_text = "cop&y"
-#uf.gui_icon = "oxygen.actions.list-add"
-#uf.wizard_image = WIZARD_IMAGE_PATH + 'align_tensor.png'
+# The pcs.copy user function.
+uf = uf_info.add_uf('pcs.copy')
+uf.title = "Copy PCS data from one data pipe to another."
+uf.title_short = "PCS copying."
+uf.add_keyarg(
+    name = "pipe_from",
+    py_type = "str",
+    desc_short = "source pipe",
+    desc = "The name of the pipe to copy the PCS data from.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = pipes.pipe_names,
+    can_be_none = True
+)
+uf.add_keyarg(
+    name = "pipe_to",
+    py_type = "str",
+    desc_short = "destination pipe",
+    desc = "The name of the pipe to copy the PCS data to.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = pipes.pipe_names,
+    can_be_none = True
+)
+uf.add_keyarg(
+    name = "align_id",
+    py_type = "str",
+    desc_short = "alignment ID string",
+    desc = "The alignment ID string.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = align_tensor.get_ids,
+    wiz_read_only = True,
+    can_be_none = True
+)
+# Description.
+uf.desc.append(Desc_container())
+uf.desc[-1].add_paragraph("This function will copy PCS data from 'pipe_from' 
to 'pipe_to'.  If align_id is not given then all PCS data will be copied, 
otherwise only a specific data set will be.")
+# Prompt examples.
+uf.desc.append(Desc_container("Prompt examples"))
+uf.desc[-1].add_paragraph("To copy all PCS data from pipe 'm1' to pipe 'm9', 
type one of:")
+uf.desc[-1].add_prompt("relax> pcs.copy('m1', 'm9')")
+uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m1', pipe_to='m9')")
+uf.desc[-1].add_prompt("relax> pcs.copy('m1', 'm9', None)")
+uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m1', pipe_to='m9', 
align_id=None)")
+uf.desc[-1].add_paragraph("To copy only the 'Th' PCS data from 'm3' to 'm6', 
type one of:")
+uf.desc[-1].add_prompt("relax> pcs.copy('m3', 'm6', 'Th')")
+uf.desc[-1].add_prompt("relax> pcs.copy(pipe_from='m3', pipe_to='m6', 
align_id='Th')")
+uf.backend = pcs.copy
+uf.menu_text = "cop&y"
+uf.gui_icon = "oxygen.actions.list-add"
+uf.wizard_image = WIZARD_IMAGE_PATH + 'align_tensor.png'
 
 
 # The pcs.corr_plot user function.

Modified: trunk/user_functions/rdc.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/user_functions/rdc.py?rev=17971&r1=17970&r2=17971&view=diff
==============================================================================
--- trunk/user_functions/rdc.py (original)
+++ trunk/user_functions/rdc.py Wed Nov 14 17:23:10 2012
@@ -96,56 +96,55 @@
 uf.wizard_apply_button = False
 
 
-# No backend!
-## The rdc.copy user function.
-#uf = uf_info.add_uf('rdc.copy')
-#uf.title = "Copy RDC data from one data pipe to another."
-#uf.title_short = "RDC copying."
-#uf.add_keyarg(
-#    name = "pipe_from",
-#    py_type = "str",
-#    desc_short = "source pipe",
-#    desc = "The name of the pipe to copy the RDC data from.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = pipes.pipe_names,
-#    can_be_none = True
-#)
-#uf.add_keyarg(
-#    name = "pipe_to",
-#    py_type = "str",
-#    desc_short = "destination pipe",
-#    desc = "The name of the pipe to copy the RDC data to.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = pipes.pipe_names,
-#    can_be_none = True
-#)
-#uf.add_keyarg(
-#    name = "align_id",
-#    py_type = "str",
-#    desc_short = "alignment ID string",
-#    desc = "The alignment ID string.",
-#    wiz_element_type = 'combo',
-#    wiz_combo_iter = align_tensor.get_ids,
-#    wiz_read_only = True,
-#    can_be_none = True
-#)
-## Description.
-#uf.desc.append(Desc_container())
-#uf.desc[-1].add_paragraph("This function will copy RDC data from 
'pipe_from' to 'pipe_to'.  If align_id is not given then all RDC data will be 
copied, otherwise only a specific data set will be.")
-## Prompt examples.
-#uf.desc.append(Desc_container("Prompt examples"))
-#uf.desc[-1].add_paragraph("To copy all RDC data from pipe 'm1' to pipe 
'm9', type one of:")
-#uf.desc[-1].add_prompt("relax> rdc.copy('m1', 'm9')")
-#uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m1', pipe_to='m9')")
-#uf.desc[-1].add_prompt("relax> rdc.copy('m1', 'm9', None)")
-#uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m1', pipe_to='m9', 
align_id=None)")
-#uf.desc[-1].add_paragraph("To copy only the 'Th' RDC data from 'm3' to 
'm6', type one of:")
-#uf.desc[-1].add_prompt("relax> rdc.copy('m3', 'm6', 'Th')")
-#uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m3', pipe_to='m6', 
align_id='Th')")
-#uf.backend = rdc.copy
-#uf.menu_text = "cop&y"
-#uf.gui_icon = "oxygen.actions.list-add"
-#uf.wizard_image = WIZARD_IMAGE_PATH + 'align_tensor.png'
+# The rdc.copy user function.
+uf = uf_info.add_uf('rdc.copy')
+uf.title = "Copy RDC data from one data pipe to another."
+uf.title_short = "RDC copying."
+uf.add_keyarg(
+    name = "pipe_from",
+    py_type = "str",
+    desc_short = "source pipe",
+    desc = "The name of the pipe to copy the RDC data from.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = pipes.pipe_names,
+    can_be_none = True
+)
+uf.add_keyarg(
+    name = "pipe_to",
+    py_type = "str",
+    desc_short = "destination pipe",
+    desc = "The name of the pipe to copy the RDC data to.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = pipes.pipe_names,
+    can_be_none = True
+)
+uf.add_keyarg(
+    name = "align_id",
+    py_type = "str",
+    desc_short = "alignment ID string",
+    desc = "The alignment ID string.",
+    wiz_element_type = 'combo',
+    wiz_combo_iter = align_tensor.get_ids,
+    wiz_read_only = True,
+    can_be_none = True
+)
+# Description.
+uf.desc.append(Desc_container())
+uf.desc[-1].add_paragraph("This function will copy RDC data from 'pipe_from' 
to 'pipe_to'.  If align_id is not given then all RDC data will be copied, 
otherwise only a specific data set will be.")
+# Prompt examples.
+uf.desc.append(Desc_container("Prompt examples"))
+uf.desc[-1].add_paragraph("To copy all RDC data from pipe 'm1' to pipe 'm9', 
type one of:")
+uf.desc[-1].add_prompt("relax> rdc.copy('m1', 'm9')")
+uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m1', pipe_to='m9')")
+uf.desc[-1].add_prompt("relax> rdc.copy('m1', 'm9', None)")
+uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m1', pipe_to='m9', 
align_id=None)")
+uf.desc[-1].add_paragraph("To copy only the 'Th' RDC data from 'm3' to 'm6', 
type one of:")
+uf.desc[-1].add_prompt("relax> rdc.copy('m3', 'm6', 'Th')")
+uf.desc[-1].add_prompt("relax> rdc.copy(pipe_from='m3', pipe_to='m6', 
align_id='Th')")
+uf.backend = rdc.copy
+uf.menu_text = "cop&y"
+uf.gui_icon = "oxygen.actions.list-add"
+uf.wizard_image = WIZARD_IMAGE_PATH + 'align_tensor.png'
 
 
 # The rdc.corr_plot user function.




Related Messages


Powered by MHonArc, Updated Wed Nov 14 17:40:02 2012