Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Fix series perf tests in new style#339

Merged
shssf merged 7 commits intoIntelPython:masterfrom
1e-to:bench_test
Dec 1, 2019
Merged

Fix series perf tests in new style#339
shssf merged 7 commits intoIntelPython:masterfrom
1e-to:bench_test

Conversation

@1e-to
Copy link
Copy Markdown
Contributor

@1e-to 1e-to commented Nov 26, 2019

No description provided.

@1e-to 1e-to requested a review from densmirn November 26, 2019 12:06
@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Nov 26, 2019

Hello @1e-to! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 223:1: W293 blank line contains whitespace
Line 224:1: W293 blank line contains whitespace
Line 233:1: W293 blank line contains whitespace
Line 398:1: W391 blank line at end of file

Comment last updated at 2019-12-01 19:40:49 UTC

Copy link
Copy Markdown
Contributor

@densmirn densmirn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR. Some changes to be applied before merge.

if id not in list(sort[len(self._data) - na:]):
result[id] = sort_nona[id-q]
else:
if id in list(sort[len(self._data) - na:]):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the best name sort for the Python variable. Why do you use constructor list() here? Is it exactly required?

if id in list(sort[len(self._data) - na:]):
q += 1
else:
result[id] = sort_nona[id-q]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow PEP8 recommendation: "Always surround these binary operators with a single space on either side".

Comment on lines +3134 to +3137
if id in list(sort[len(self._data) - na:]):
q += 1
else:
result[id] = sort_nona[id - q]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same comments as above.

@shssf shssf merged commit 69db986 into IntelPython:master Dec 1, 2019
@1e-to 1e-to deleted the bench_test branch January 27, 2020 09:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants