We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34ea6d commit cad721bCopy full SHA for cad721b
src/diffpy/fourigui/fourigui.py
@@ -1,4 +1,3 @@
1
-import time
2
import tkinter as tk
3
from tkinter.ttk import Button
4
@@ -466,7 +465,6 @@ def applycutoff(self):
466
465
"""
467
if not self.cutted:
468
469
- time0 = time.time()
470
X, Y, Z = self.cube.shape
471
sphere = np.ones((X, Y, Z))
472
qmin = float(self.qminentry.get())
@@ -479,8 +477,7 @@ def applycutoff(self):
479
477
R2 = (XS - X // 2) ** 2 + (YS - Y // 2) ** 2 + (ZS - Z // 2) ** 2
480
478
mask = (R2 <= r2_inner) | (R2 >= r2_outer)
481
sphere[mask] = np.nan
482
- cutdur = time.time() - time0
483
-
+
484
if self.space.get():
485
self.cube_real = self.cube
486
self.cube = self.cube_reci * sphere
0 commit comments