File: numpy.numarray

package info (click to toggle)
conservation-code 20110309.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 608 kB
  • sloc: python: 512; sh: 24; makefile: 21
file content (14 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (4)
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