mailr8344 - /branches/relax_disp/prompt/relax_disp.py


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

Header


Content

Posted by sebastien . morin . 1 on January 08, 2009 - 20:20:
Author: semor
Date: Thu Jan  8 20:20:15 2009
New Revision: 8344

URL: http://svn.gna.org/viewcvs/relax?rev=8344&view=rev
Log:
Added something in the user function cpmg_frq().

Yes, I had forgotten to put some code after the docstring..!


Modified:
    branches/relax_disp/prompt/relax_disp.py

Modified: branches/relax_disp/prompt/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/prompt/relax_disp.py?rev=8344&r1=8343&r2=8344&view=diff
==============================================================================
--- branches/relax_disp/prompt/relax_disp.py (original)
+++ branches/relax_disp/prompt/relax_disp.py Thu Jan  8 20:20:15 2009
@@ -123,6 +123,25 @@
 
         relax> relax_disp.cpmg_frq(200, '200_Hz_spectrum')
         relax> relax_disp.cpmg_frq(frq=200, spectrum_id='200_Hz_spectrum')
+        """
+
+        # Function intro text.
+        if self.__relax__.interpreter.intro:
+            text = sys.ps3 + "frq("
+            text = text + "spectrum_id=" + `spectrum_id`
+            text = text + ", frq=" + `frq` + ")"
+            print text
+
+        # The frq argument.
+        if type(frq) != int:
+            raise RelaxIntError, ('frq', frq)
+
+        # The spectrum_id argument.
+        if type(spectrum_id) != str:
+             raise RelaxStrError, ('spectrum_id', spectrum_id)
+
+        # Execute the functional code.
+        relax_disp_obj.cpmg_frq(frq=frq, spectrum_id=spectrum_id)
 
 
     def exp_type(self, exp='cpmg'):




Related Messages


Powered by MHonArc, Updated Thu Jan 08 20:40:03 2009