[Scipy-svn] r6918 - trunk/scipy/maxentropy

scipy-svn@scip... scipy-svn@scip...
Sat Nov 20 01:10:14 CST 2010


Author: warren.weckesser
Date: 2010-11-20 01:10:13 -0600 (Sat, 20 Nov 2010)
New Revision: 6918

Modified:
   trunk/scipy/maxentropy/maxentropy.py
Log:
maxentropy: don't use 'import *'

Modified: trunk/scipy/maxentropy/maxentropy.py
===================================================================
--- trunk/scipy/maxentropy/maxentropy.py	2010-11-20 06:59:50 UTC (rev 6917)
+++ trunk/scipy/maxentropy/maxentropy.py	2010-11-20 07:10:13 UTC (rev 6918)
@@ -71,9 +71,12 @@
 
 import math, types, cPickle
 import numpy as np
+from numpy import exp, asarray
 from scipy import optimize
 from scipy.linalg import norm
-from scipy.maxentropy.maxentutils import *
+from scipy.maxentropy.maxentutils import logsumexp, arrayexp, \
+        innerprod, innerprodtranspose, columnmeans, columnvariances, \
+        flatten, DivergenceError, sparsefeaturematrix
 
 
 class basemodel(object):



More information about the Scipy-svn mailing list