mailr20680 - /branches/relax_disp/specific_analyses/relax_disp/api.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:15:
Author: bugman
Date: Thu Aug 22 15:15:47 2013
New Revision: 20680

URL: http://svn.gna.org/viewcvs/relax?rev=20680&view=rev
Log:
A new check blocking exponential curve fitting in the dispersion analysis 
when the C modules are not compiled.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/api.py

Modified: branches/relax_disp/specific_analyses/relax_disp/api.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/api.py?rev=20680&r1=20679&r2=20680&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/api.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/api.py Thu Aug 22 
15:15:47 2013
@@ -459,6 +459,10 @@
         @type inc:                  array of int
         """
 
+        # Check that the C modules have been compiled.
+        if not C_module_exp_fn:
+            raise RelaxError("Relaxation curve fitting is not available.  
Try compiling the C modules on your platform.")
+
         # Loop over the spins.
         for spin, spin_id in spin_loop(return_id=True, skip_desel=True):
             # Skip spins which have no data.




Related Messages


Powered by MHonArc, Updated Fri Aug 23 17:00:01 2013