mailr20679 - /branches/relax_disp/gui/analyses/__init__.py


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

Header


Content

Posted by edward on August 22, 2013 - 15:00:
Author: bugman
Date: Thu Aug 22 15:00:19 2013
New Revision: 20679

URL: http://svn.gna.org/viewcvs/relax?rev=20679&view=rev
Log:
Modified the GUI behaviour for a dispersion analysis when the C modules are 
not compiled.

Previously a user was blocked from performing any dispersion analysis in the 
GUI is the modules were
not compiled.  Now instead, although an error is still thrown, the analysis 
will be initialised.


Modified:
    branches/relax_disp/gui/analyses/__init__.py

Modified: branches/relax_disp/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/analyses/__init__.py?rev=20679&r1=20678&r2=20679&view=diff
==============================================================================
--- branches/relax_disp/gui/analyses/__init__.py (original)
+++ branches/relax_disp/gui/analyses/__init__.py Thu Aug 22 15:00:19 2013
@@ -451,9 +451,13 @@
         """
 
         # Check the C modules.
-        if analysis_type in ['r1', 'r2', 'relax_disp'] and not 
dep_check.C_module_exp_fn:
+        if analysis_type in ['r1', 'r2'] and not dep_check.C_module_exp_fn:
             error_message("Relaxation curve fitting is not available.  Try 
compiling the C modules on your platform.")
             return
+
+        # Check the C modules.
+        if analysis_type == 'relax_disp' and not dep_check.C_module_exp_fn:
+            error_message("Relaxation curve fitting will not available for 
this dispersion analysis.  Try compiling the C modules on your platform if 
you have measured full exponential curves.")
 
         # Freeze the GUI.
         wx.Yield()




Related Messages


Powered by MHonArc, Updated Thu Aug 22 15:20:01 2013