mailr11640 - in /branches/bmrb/prompt: bmrb.py molecule.py relax_data.py spin.py


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

Header


Content

Posted by edward on October 15, 2010 - 18:06:
Author: bugman
Date: Fri Oct 15 18:05:59 2010
New Revision: 11640

URL: http://svn.gna.org/viewcvs/relax?rev=11640&view=rev
Log:
Fix for all the BMRB related user functions - exec_info is now a private 
variable.


Modified:
    branches/bmrb/prompt/bmrb.py
    branches/bmrb/prompt/molecule.py
    branches/bmrb/prompt/relax_data.py
    branches/bmrb/prompt/spin.py

Modified: branches/bmrb/prompt/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/prompt/bmrb.py?rev=11640&r1=11639&r2=11640&view=diff
==============================================================================
--- branches/bmrb/prompt/bmrb.py (original)
+++ branches/bmrb/prompt/bmrb.py Fri Oct 15 18:05:59 2010
@@ -122,8 +122,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.citation("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.citation("
             text = text + "cite_id=" + repr(cite_id)
             text = text + ", authors=" + repr(authors)
             text = text + ", doi=" + repr(doi)
@@ -166,8 +166,8 @@
         """Display the BMRB data in NMR-STAR format."""
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.display("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.display("
             text = text + "version=" + repr(version) + ")"
             print(text)
 
@@ -193,8 +193,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.read("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.read("
             text = text + "file=" + repr(file)
             text = text + ", dir=" + repr(dir)
             text = text + ", version=" + repr(version) + ")"
@@ -296,8 +296,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.script("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.script("
             text = text + "file=" + repr(file)
             text = text + ", dir=" + repr(dir)
             text = text + ", analysis_type=" + repr(analysis_type)
@@ -371,8 +371,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.software("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.software("
             text = text + "name=" + repr(name)
             text = text + ", version=" + repr(version)
             text = text + ", url=" + repr(url)
@@ -429,8 +429,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.software_select("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.software_select("
             text = text + "name=" + repr(name)
             text = text + ", version=" + repr(version) + ")"
             print(text)
@@ -482,8 +482,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.thiol_state("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.thiol_state("
             text = text + "state=" + repr(state) + ")"
             print(text)
 
@@ -519,8 +519,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "bmrb.write("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "bmrb.write("
             text = text + "file=" + repr(file)
             text = text + ", dir=" + repr(dir)
             text = text + ", version=" + repr(version)

Modified: branches/bmrb/prompt/molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/prompt/molecule.py?rev=11640&r1=11639&r2=11640&view=diff
==============================================================================
--- branches/bmrb/prompt/molecule.py (original)
+++ branches/bmrb/prompt/molecule.py Fri Oct 15 18:05:59 2010
@@ -267,8 +267,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "molecule.type("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "molecule.type("
             text = text + "mol_id=" + repr(mol_id)
             text = text + ", type=" + repr(type)
             text = text + ", force=" + repr(force) + ")"

Modified: branches/bmrb/prompt/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/prompt/relax_data.py?rev=11640&r1=11639&r2=11640&view=diff
==============================================================================
--- branches/bmrb/prompt/relax_data.py (original)
+++ branches/bmrb/prompt/relax_data.py Fri Oct 15 18:05:59 2010
@@ -218,8 +218,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "relax_data.peak_intensity_type("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "relax_data.peak_intensity_type("
             text = text + "ri_label=" + repr(ri_label)
             text = text + ", frq_label=" + repr(frq_label)
             text = text + ", type=" + repr(type) + ")"
@@ -384,8 +384,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "relax_data.temp_calibration("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "relax_data.temp_calibration("
             text = text + "ri_label=" + repr(ri_label)
             text = text + ", frq_label=" + repr(frq_label)
             text = text + ", method=" + repr(method) + ")"
@@ -428,8 +428,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "relax_data.temp_control("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "relax_data.temp_control("
             text = text + "ri_label=" + repr(ri_label)
             text = text + ", frq_label=" + repr(frq_label)
             text = text + ", method=" + repr(method) + ")"

Modified: branches/bmrb/prompt/spin.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/prompt/spin.py?rev=11640&r1=11639&r2=11640&view=diff
==============================================================================
--- branches/bmrb/prompt/spin.py (original)
+++ branches/bmrb/prompt/spin.py Fri Oct 15 18:05:59 2010
@@ -287,8 +287,8 @@
         """
 
         # Function intro text.
-        if self.exec_info.intro:
-            text = self.exec_info.ps3 + "spin.element("
+        if self._exec_info.intro:
+            text = self._exec_info.ps3 + "spin.element("
             text = text + "spin_id=" + repr(spin_id)
             text = text + ", element=" + repr(element)
             text = text + ", force=" + repr(force) + ")"




Related Messages


Powered by MHonArc, Updated Tue Oct 19 15:40:02 2010