Skip to content

Commit 15d57bd

Browse files
authored
Merge pull request #81 from bobleesj/cookie-lambda-func2
Fix flake8 error lambda functions (E731) by importing erfc from scipy
2 parents bf0244a + a05b3f1 commit 15d57bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/diffpy/srfit/pdf/characteristicfunctions.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from numpy import arctanh as atanh
4242
from numpy import ceil, exp, log, log2, pi, sign, sqrt
4343
from numpy.fft import fftfreq, ifft
44-
from scipy.special import erf
44+
from scipy.special import erfc
4545

4646
from diffpy.srfit.fitbase.calculator import Calculator
4747

@@ -198,8 +198,6 @@ def lognormalSphericalCF(r, psize, psig):
198198
if psig <= 0:
199199
return sphericalCF(r, psize)
200200

201-
erfc = lambda x: 1.0 - erf(x)
202-
203201
sqrt2 = sqrt(2.0)
204202
s = sqrt(log(psig * psig / (1.0 * psize * psize) + 1))
205203
mu = log(psize) - s * s / 2

0 commit comments

Comments
 (0)