mailr23624 - /branches/frame_order_cleanup/specific_analyses/frame_order/uf.py


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

Header


Content

Posted by edward on June 03, 2014 - 18:09:
Author: bugman
Date: Tue Jun  3 18:09:00 2014
New Revision: 23624

URL: http://svn.gna.org/viewcvs/relax?rev=23624&view=rev
Log:
The frame_order.num_int_pts user function now throws a RelaxWarning if not 
enough points are used.


Modified:
    branches/frame_order_cleanup/specific_analyses/frame_order/uf.py

Modified: branches/frame_order_cleanup/specific_analyses/frame_order/uf.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/specific_analyses/frame_order/uf.py?rev=23624&r1=23623&r2=23624&view=diff
==============================================================================
--- branches/frame_order_cleanup/specific_analyses/frame_order/uf.py    
(original)
+++ branches/frame_order_cleanup/specific_analyses/frame_order/uf.py    Tue 
Jun  3 18:09:00 2014
@@ -27,6 +27,7 @@
 from math import pi
 from numpy import array, dot, eye, float64, transpose, zeros
 import sys
+from warnings import warn
 
 # relax module imports.
 from lib.arg_check import is_float_array
@@ -41,6 +42,7 @@
 from lib.structure.represent.cone import cone
 from lib.structure.represent.rotor import rotor_pdb
 from lib.text.sectioning import subsection
+from lib.warnings import RelaxWarning
 from pipe_control import pipes
 from pipe_control.structure.mass import pipe_centre_of_mass
 from specific_analyses.frame_order.data import domain_moving
@@ -57,6 +59,10 @@
     # Test if the current data pipe exists.
     pipes.test()
 
+    # Throw a warning to the user if not enough points are being used.
+    if num < 1000:
+        warn(RelaxWarning("To obtain reliable results in a frame order 
analysis, the number of integration points should be greater than 1000."))
+ 
     # Store the value.
     cdp.num_int_pts = num
 




Related Messages


Powered by MHonArc, Updated Tue Jun 03 18:20:03 2014