Skip to content

Commit cad721b

Browse files
committed
remove further usage of time
1 parent c34ea6d commit cad721b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/diffpy/fourigui/fourigui.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import time
21
import tkinter as tk
32
from tkinter.ttk import Button
43

@@ -466,7 +465,6 @@ def applycutoff(self):
466465
"""
467466
if not self.cutted:
468467

469-
time0 = time.time()
470468
X, Y, Z = self.cube.shape
471469
sphere = np.ones((X, Y, Z))
472470
qmin = float(self.qminentry.get())
@@ -479,8 +477,7 @@ def applycutoff(self):
479477
R2 = (XS - X // 2) ** 2 + (YS - Y // 2) ** 2 + (ZS - Z // 2) ** 2
480478
mask = (R2 <= r2_inner) | (R2 >= r2_outer)
481479
sphere[mask] = np.nan
482-
cutdur = time.time() - time0
483-
480+
484481
if self.space.get():
485482
self.cube_real = self.cube
486483
self.cube = self.cube_reci * sphere

0 commit comments

Comments
 (0)