mailr8963 - /1.3/sample_scripts/latex_mf_table.py


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

Header


Content

Posted by sebastien . morin . 1 on March 10, 2009 - 21:31:
Author: semor
Date: Tue Mar 10 20:52:43 2009
New Revision: 8963

URL: http://svn.gna.org/viewcvs/relax?rev=8963&view=rev
Log:
Fix for bug 13163 : latex_mf_table.py sample script broken.

Discussion on this topic is in a thread at:
https://mail.gna.org/public/relax-devel/2009-03/msg00007.html
(Message-id: <49B6A6B1.4080305@xxxxxxxxx>)


Modified:
    1.3/sample_scripts/latex_mf_table.py

Modified: 1.3/sample_scripts/latex_mf_table.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/sample_scripts/latex_mf_table.py?rev=8963&r1=8962&r2=8963&view=diff
==============================================================================
--- 1.3/sample_scripts/latex_mf_table.py (original)
+++ 1.3/sample_scripts/latex_mf_table.py Tue Mar 10 20:52:43 2009
@@ -180,10 +180,15 @@
 
             # The spin is not selected.
             if not spin.select:
-                self.file.write("\\\n")
+                self.file.write("\\multicolumn{11}{c}{} \\\\\n")
+                continue
 
             # The model-free model.
-            self.file.write("$%s$ & " % spin.model)
+            if hasattr(spin, 'model'):
+                self.file.write("$%s$ & " % spin.model)
+            else:
+                self.file.write("\\multicolumn{11}{c}{} \\\\\n")
+                continue
 
             # S2.
             if spin.s2 == None:




Related Messages


Powered by MHonArc, Updated Wed Mar 11 14:20:02 2009