Skip to content

Commit a05b3f1

Browse files
committed
Replace erf to erfc by importing the func
1 parent 563de3f commit a05b3f1

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)