-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docstrings to enable PEP8 501 #10797
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! Comments are just style nits.
@@ -55,17 +55,18 @@ def test_image_data_generator(self, tmpdir): | |||
vertical_flip=True) | |||
generator.fit(images, augment=True) | |||
|
|||
for x, y in generator.flow(images, np.arange(images.shape[0]), | |||
N = images.shape[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid capitalized variable names and single-letter variable names; batch_size
or num_samples
would be better here.
tests/keras/utils/data_utils_test.py
Outdated
@@ -187,7 +188,8 @@ def test_generator_enqueuer_processes(): | |||
acc = [] | |||
for i in range(100): | |||
acc.append(int(next(gen_output)[0, 0, 0, 0])) | |||
assert acc != list(range(100)), "Order was keep in GeneratorEnqueuer with processes" | |||
assert acc != list(range(100)), ( | |||
"Order was keep in GeneratorEnqueuer with processes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a pre-existing issue, but prefer using '
as string delimiter for consistency with the rest of the file (likewise for the other string error message below).
@fchollet, Updated. |
This PR improves docstrings to enable PEP8 501.
cc @yongzx (I have done a backward sweep :) as you did a forward sweep on the
pytest.ini
)