File: fix_load_identity_matrix

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 (13 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Author: Tatiana Malygina <merlettaia@gmail.com>
Last-Update: 2016-06-06
Description: add import statement before identity method call
--- conservation-code-20110309.0.orig/score_conservation.py
+++ conservation-code-20110309.0/score_conservation.py
@@ -544,6 +544,7 @@
 
     except IOError, e:
 	print( "Could not load similarity matrix: %s. Using identity matrix..." % sm_file, file=sys.stderr )
+	from numpy import identity
 	return identity(20)
 	
     # if matrix is stored in lower tri form, copy to upper