mailr14139 - /branches/gui_testing/gui/analyses/auto_model_free.py


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

Header


Content

Posted by edward on August 04, 2011 - 17:12:
Author: bugman
Date: Thu Aug  4 17:12:33 2011
New Revision: 14139

URL: http://svn.gna.org/viewcvs/relax?rev=14139&view=rev
Log:
Modified the messages for missing unit vectors in the model-free 
auto-analysis tab.


Modified:
    branches/gui_testing/gui/analyses/auto_model_free.py

Modified: branches/gui_testing/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_model_free.py?rev=14139&r1=14138&r2=14139&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_model_free.py (original)
+++ branches/gui_testing/gui/analyses/auto_model_free.py Thu Aug  4 17:12:33 
2011
@@ -367,27 +367,27 @@
                 continue
 
             # The message skeleton.
-            msg = "Spin '%s' - %s (try the value.set user function)." % 
(spin_id, "%s")
+            msg = "Spin '%s' - %s (try the %s user function)." % (spin_id, 
"%s", "%s")
 
             # Test if the bond length has been set.
             if not hasattr(spin, 'r') or spin.r == None:
-                missing.append(msg % "bond length data")
+                missing.append(msg % ("bond length data", "value.set"))
 
             # Test if the CSA value has been set.
             if not hasattr(spin, 'csa') or spin.csa == None:
-                missing.append(msg % "CSA data")
+                missing.append(msg % ("CSA data", "value.set"))
 
             # Test if the heteronucleus type has been set.
             if not hasattr(spin, 'heteronuc_type') or spin.heteronuc_type == 
None:
-                missing.append(msg % "heteronucleus type data")
+                missing.append(msg % ("heteronucleus type data", 
"value.set"))
 
             # Test if the proton type has been set.
             if not hasattr(spin, 'proton_type') or spin.proton_type == None:
-                missing.append(msg % "proton type data")
+                missing.append(msg % ("proton type data", "value.set"))
 
             # Test if the unit vectors have been loaded.
             if not hasattr(spin, 'unit_vect') or spin.unit_vect == None:
-                missing.append(msg % "unit vectors")
+                missing.append(msg % ("unit vectors", "structure.vectors"))
 
         # Return the container and list of missing data.
         return data, missing




Related Messages


Powered by MHonArc, Updated Thu Aug 04 18:00:03 2011