mailr13650 - /branches/gui_testing/gui/analyses/auto_noe.py


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

Header


Content

Posted by edward on July 15, 2011 - 14:08:
Author: bugman
Date: Fri Jul 15 14:08:44 2011
New Revision: 13650

URL: http://svn.gna.org/viewcvs/relax?rev=13650&view=rev
Log:
An error message is given prior to the NOE peak intensity wizard if no spins 
have been named.


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

Modified: branches/gui_testing/gui/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_noe.py?rev=13650&r1=13649&r2=13650&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_noe.py (original)
+++ branches/gui_testing/gui/analyses/auto_noe.py Fri Jul 15 14:08:44 2011
@@ -35,6 +35,7 @@
 # relax module imports.
 from auto_analyses.noe import NOE_calc
 from data import Relax_data_store; ds = Relax_data_store()
+from generic_fns.mol_res_spin import are_spins_named
 from relax_io import DummyFileObject
 from status import Status; status = Status()
 
@@ -328,6 +329,10 @@
         @type event:    wx event
         """
 
+        # First check that at least a single spin is named!
+        if not are_spins_named():
+            error_message("No spins have been named.  Please use the 
spin.name user function first, otherwise it is unlikely that any data will be 
loaded from the peak intensity file.\n\nThis message can be ignored if the 
generic file format is used and spin names have not been specified.", 
caption='Incomplete setup')
+
         # Initialise a wizard.
         self.wizard = Wiz_window(size_x=1000, size_y=900, title="Set up the 
NOE peak intensities")
         self.page_indices = {}




Related Messages


Powered by MHonArc, Updated Fri Jul 15 15:00:02 2011