Skip to content

Commit c3d9984

Browse files
committed
fix: fix fetch qmax
1 parent 1fbfa0a commit c3d9984

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffpy/srmise/pdfpeakextraction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def defaultvars(self, *args):
247247

248248
# Enable "dg" as alias for "effective_dy"
249249
if "dg" in args and "effective_dy" not in args:
250-
nargs.add("effective_dy")
250+
nargs.append("effective_dy")
251251

252252
# Set other defaults
253253
PeakExtraction.defaultvars(self, *nargs)
@@ -1000,7 +1000,7 @@ def find_qmax(r, y, showgraphs=False):
10001000
new_y = resample(r, y, new_r)
10011001
new_dr = (new_r[-1] - r[0]) / (len(new_r) - 1)
10021002

1003-
yfft = np.imag(np.fft.fft(new_y))[: len(new_y) / 2]
1003+
yfft = np.imag(np.fft.fft(new_y))[: len(new_y) // 2]
10041004

10051005
d_ratio = stdratio(yfft)
10061006

0 commit comments

Comments
 (0)