Skip to content

Commit

Permalink
flake8 line length errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cadenmyers13 committed Jan 7, 2025
1 parent f9ded61 commit 3c1229e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/diffpy/fourigui/fourigui.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ def initUI(self):
self.cutted = (
False # denotes whether cutoff frequencies are applied to dataset
)
self.transcutted = False # denotes whether cutoff frequencies are applied and Fourier transformed
self.transcutted = (
False # denotes whether cutoff frequencies are applied
)
# and Fourier transformed

self.master.title("FouriGUI")
self.pack(fill=tk.BOTH, expand=True)

print("\nNew Session started ...")
print(
"Enjoy exploring the beautiful reconstructions in real and in reciprocal space!"
"Enjoy exploring the beautiful reconstructions in real and in reciprocal space!" # noqa: E501
)

# 4 frames:
Expand Down Expand Up @@ -170,9 +173,7 @@ def initUI(self):
anibutton.grid(row=8, column=4)

# row 10-12 Fourier transformation
separator = tk.Label(
frame00, text=" "
) # __________________________________________________________________")
separator = tk.Label(frame00, text=" ")
separator.grid(row=9, column=0, columnspan=5)
cutofflabel = tk.Label(frame00, text="cutoff frequency")
cutofflabel.grid(row=10, column=2, columnspan=2)
Expand Down Expand Up @@ -503,8 +504,8 @@ def ifft(self):
def applycutoff(self):
"""Shape the reciprocal-space array.
reassign all voxels with distance smaller than qmin and greater than qmax
to np.nan.
reassign all voxels with distance smaller than qmin and greater than
qmax to np.nan.
parameters:
-----------
Expand Down Expand Up @@ -605,7 +606,7 @@ def animation(self):
anispeed = self.anientry.get()
except ValueError:
print(
"Oops... animation speed must be an integer > 0 or empty string."
"Oops... animation speed must be an integer > 0 or empty string." # noqa: E501
)
n = self.plane_num.get() - 1
while n is not self.plane_num.get():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_fourigui.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def test_applycutoff(mocker):
mocker.patch.object(fg.qmaxentry, "get", return_value=2)
mocker.patch.object(
fg, "fft"
) # we don't want it to do the fft so intercept. Should be tested separately (fixme).
) # we don't want it to do the fft so intercept.
# Should be tested separately (fixme).
fg.cutted = False
fg.cube_reci = np.ones((5, 5, 5))
fg.cube = np.ones((5, 5, 5))
Expand Down

0 comments on commit 3c1229e

Please sign in to comment.