Skip to content

Commit 3c1229e

Browse files
committed
flake8 line length errors
1 parent f9ded61 commit 3c1229e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Diff for: src/diffpy/fourigui/fourigui.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@ def initUI(self):
3333
self.cutted = (
3434
False # denotes whether cutoff frequencies are applied to dataset
3535
)
36-
self.transcutted = False # denotes whether cutoff frequencies are applied and Fourier transformed
36+
self.transcutted = (
37+
False # denotes whether cutoff frequencies are applied
38+
)
39+
# and Fourier transformed
3740

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

4144
print("\nNew Session started ...")
4245
print(
43-
"Enjoy exploring the beautiful reconstructions in real and in reciprocal space!"
46+
"Enjoy exploring the beautiful reconstructions in real and in reciprocal space!" # noqa: E501
4447
)
4548

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

172175
# row 10-12 Fourier transformation
173-
separator = tk.Label(
174-
frame00, text=" "
175-
) # __________________________________________________________________")
176+
separator = tk.Label(frame00, text=" ")
176177
separator.grid(row=9, column=0, columnspan=5)
177178
cutofflabel = tk.Label(frame00, text="cutoff frequency")
178179
cutofflabel.grid(row=10, column=2, columnspan=2)
@@ -503,8 +504,8 @@ def ifft(self):
503504
def applycutoff(self):
504505
"""Shape the reciprocal-space array.
505506
506-
reassign all voxels with distance smaller than qmin and greater than qmax
507-
to np.nan.
507+
reassign all voxels with distance smaller than qmin and greater than
508+
qmax to np.nan.
508509
509510
parameters:
510511
-----------
@@ -605,7 +606,7 @@ def animation(self):
605606
anispeed = self.anientry.get()
606607
except ValueError:
607608
print(
608-
"Oops... animation speed must be an integer > 0 or empty string."
609+
"Oops... animation speed must be an integer > 0 or empty string." # noqa: E501
609610
)
610611
n = self.plane_num.get() - 1
611612
while n is not self.plane_num.get():

Diff for: tests/test_fourigui.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ def test_applycutoff(mocker):
227227
mocker.patch.object(fg.qmaxentry, "get", return_value=2)
228228
mocker.patch.object(
229229
fg, "fft"
230-
) # we don't want it to do the fft so intercept. Should be tested separately (fixme).
230+
) # we don't want it to do the fft so intercept.
231+
# Should be tested separately (fixme).
231232
fg.cutted = False
232233
fg.cube_reci = np.ones((5, 5, 5))
233234
fg.cube = np.ones((5, 5, 5))

0 commit comments

Comments
 (0)