[Scipy-svn] r6920 - trunk/scipy/maxentropy
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Nov 20 02:28:02 EST 2010
Author: warren.weckesser
Date: 2010-11-20 01:28:02 -0600 (Sat, 20 Nov 2010)
New Revision: 6920
Modified:
trunk/scipy/maxentropy/maxentutils.py
Log:
BUG: maxentropy: another bug found by pyflakes
Modified: trunk/scipy/maxentropy/maxentutils.py
===================================================================
--- trunk/scipy/maxentropy/maxentutils.py 2010-11-20 07:21:44 UTC (rev 6919)
+++ trunk/scipy/maxentropy/maxentutils.py 2010-11-20 07:28:02 UTC (rev 6920)
@@ -24,7 +24,7 @@
import math
import cmath
import numpy
-from numpy import log, exp, asarray, ndarray
+from numpy import log, exp, asarray, ndarray, empty
from scipy import sparse
def logsumexp(a):
@@ -102,7 +102,7 @@
def _robustarraylog(x):
""" An array version of robustlog. Operates on a real array x.
"""
- arraylog = emptyarray(len(x), numpy.Complex64)
+ arraylog = empty(len(x), numpy.complex64)
for i in range(len(x)):
xi = x[i]
if xi > 0:
More information about the Scipy-svn
mailing list