1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Author: Laszlo Kajan <lkajan@rostlab.org>
Description: fix import of numarray from numpy.numarray
Forwarded: http://lists.alioth.debian.org/pipermail/debian-med-packaging/2012-October/017448.html
--- a/score_conservation.py
+++ b/score_conservation.py
@@ -790,7 +790,7 @@
if arg == 'shannon_entropy': scoring_function = shannon_entropy
elif arg == 'property_entropy': scoring_function = property_entropy
elif arg == 'property_relative_entropy': scoring_function = property_relative_entropy
- elif arg == 'vn_entropy': scoring_function = vn_entropy; from numarray import *; import numarray.linear_algebra as la
+ elif arg == 'vn_entropy': scoring_function = vn_entropy; from numpy.numarray import *; import numpy.numarray.linear_algebra as la
elif arg == 'relative_entropy': scoring_function = relative_entropy
elif arg == 'js_divergence': scoring_function = js_divergence
|