Skip to content
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

Merged
merged 2 commits into from
Jul 30, 2018

Conversation

taehoonlee
Copy link
Contributor

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)

Copy link
Collaborator

@fchollet fchollet left a 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]
Copy link
Collaborator

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.

@@ -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")
Copy link
Collaborator

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).

@taehoonlee
Copy link
Contributor Author

@fchollet, Updated.

@fchollet fchollet merged commit 4db04d8 into keras-team:master Jul 30, 2018
@taehoonlee taehoonlee deleted the enable_pep8 branch July 31, 2018 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants