mailr26004 - /branches/frame_order_cleanup/lib/frame_order/rotor.py


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

Header


Content

Posted by edward on September 24, 2014 - 13:36:
Author: bugman
Date: Wed Sep 24 13:36:08 2014
New Revision: 26004

URL: http://svn.gna.org/viewcvs/relax?rev=26004&view=rev
Log:
Missing imports for the SciPy quadratic integration function for the PCS in 
lib.frame_order.rotor.


Modified:
    branches/frame_order_cleanup/lib/frame_order/rotor.py

Modified: branches/frame_order_cleanup/lib/frame_order/rotor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/lib/frame_order/rotor.py?rev=26004&r1=26003&r2=26004&view=diff
==============================================================================
--- branches/frame_order_cleanup/lib/frame_order/rotor.py       (original)
+++ branches/frame_order_cleanup/lib/frame_order/rotor.py       Wed Sep 24 
13:36:08 2014
@@ -23,8 +23,12 @@
 """Module for the handling of Frame Order."""
 
 # Python module imports.
-from math import pi
+from math import cos, pi, sin
 from numpy import divide, dot, eye, float64, multiply, sinc, swapaxes, 
tensordot
+try:
+    from scipy.integrate import quad
+except ImportError:
+    pass
 
 # relax module imports.
 from lib.compat import norm




Related Messages


Powered by MHonArc, Updated Wed Sep 24 14:00:03 2014