-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fix PEP-8 violations reported by flake8 on asv folder #988
Merged
datapythonista
merged 33 commits into
airspeed-velocity:master
from
LucyJimenez:check_flake8
Feb 6, 2022
Merged
Changes from 25 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
c354c2a
remove library and variable not used.
LucyJimenez 02f051f
Revert "remove library and variable not used."
LucyJimenez 58bef46
fix issues pep8 related
LucyJimenez d5fc73e
fix issues pep8 related
LucyJimenez 2bb6f61
fix pep8 issues
LucyJimenez e4971f7
fix pep8 issues
LucyJimenez 057ad1f
fix pep8 issues
LucyJimenez 7ee40dc
fix pep8 issues
LucyJimenez 0aab939
remove libraries imported but unused
LucyJimenez 5a4b19d
Merge branch 'master' into flake8_issue6
LucyJimenez dcfe6b6
Merge branch 'flake8_issue5' into flake8_issue6
LucyJimenez 8ca7dd0
Merge branch 'airspeed-velocity:master' into flake8_issue6
LucyJimenez 18f3166
Merge branch 'airspeed-velocity:master' into flake8_issue5
LucyJimenez 05b0045
Merge branch 'airspeed-velocity:master' into check_flake8
LucyJimenez 6cb5640
Merge branch 'airspeed-velocity:master' into flake8_issue2
LucyJimenez c152b57
Merge branch 'airspeed-velocity:master' into flake8_issue3
LucyJimenez e5680c7
Merge branch 'airspeed-velocity:master' into flake8_issue4
LucyJimenez 32372c6
Merge branch 'flake8_issue2' into check_flake8
LucyJimenez bccabad
Merge branch 'flake8_issue3' into check_flake8
LucyJimenez dd713e5
Merge branch 'flake8_issue4' into check_flake8
LucyJimenez c7fb513
Merge branch 'flake8_issue5' into check_flake8
LucyJimenez 5d72e73
Merge branch 'flake8_issue6' into check_flake8
LucyJimenez edd129a
update ci config and fix pep8 issues
LucyJimenez 0c72f25
update ci config
LucyJimenez c372067
update path on ci file
LucyJimenez 972d51b
fix pep8 issues and include missing files on ci chek for flake8
LucyJimenez e1a1814
update util.py
LucyJimenez 9a98e89
update step_detect.py
LucyJimenez 8805d6c
reverse changes on step_detect.py and util.py
LucyJimenez c3d4f6e
update step_detect.py
LucyJimenez 99e02b7
update step_detect.py
LucyJimenez 76afcb9
update util.py
LucyJimenez 3060432
update CI
LucyJimenez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,6 +243,7 @@ def quantile(x, q): | |
|
||
_mann_whitney_u_memo = {} | ||
|
||
|
||
def mann_whitney_u(x, y, method='auto'): | ||
""" | ||
Mann-Whitney U test | ||
|
@@ -333,7 +334,7 @@ def mann_whitney_u_cdf(m, n, u, memo=None): | |
memo = {} | ||
cdf = 0 | ||
for uu in range(u + 1): | ||
cdf += mann_whitney_u_pmf(m, n, uu, memo) | ||
cdf += mann_whitney_u_pmf(m, n, uu, memo) | ||
return cdf | ||
|
||
|
||
|
@@ -387,7 +388,7 @@ def binom_pmf(n, k, p): | |
logp = math.log(p) | ||
log1mp = math.log(1 - p) | ||
return math.exp(lgamma(1 + n) - lgamma(1 + n - k) - lgamma(1 + k) | ||
+ k*logp + (n - k)*log1mp) | ||
+ k*logp + (n - k)*log1mp) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like spaces are missing around operators. Isn't flake8 complaining? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was my mistake. I'm working on fixing it! |
||
|
||
|
||
_BERNOULLI = [1.0, -0.5, 0.166666666667, 0.0, -0.0333333333333, 0.0, 0.0238095238095] | ||
|
@@ -656,4 +657,3 @@ def ppf(self, cdf): | |
cdfx = min(cdf * self._cdf_norm, self._cdf_norm) | ||
beta = self._ppf_unnorm(cdfx) | ||
return beta * self._y_scale + self.mle | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are all the files in this PR added here? Seems like some are missing, is there a reason for it?
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, Marc. You are right! I'm going to include all the respective files.