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

DM-23173: Change W504 to W503 and fix flake8 warnings #47

Merged
merged 1 commit into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[flake8]
max-line-length = 110
max-doc-length = 79
ignore = E133, E226, E228, N802, N803, N806, N812, N815, N816, W504, E266
ignore = E133, E226, E228, N802, N803, N806, N812, N815, N816, W503, E266
exclude = __init__.py
config/*.py

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806 N812 N815 N816 W504 E266
flake8-ignore = E133 E226 E228 N802 N803 N806 N812 N815 N816 W503 E266
4 changes: 2 additions & 2 deletions tests/test_PsfexPsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def psfVal(ix, iy, x, y, sigma1, sigma2, b):
c, s = np.cos(theta), np.sin(theta)
u, v = c*dx - s*dy, s*dx + c*dy

return (math.exp(-0.5*(u**2 + (v*ab)**2)/sigma1**2) +
b*math.exp(-0.5*(u**2 + (v*ab)**2)/sigma2**2))/(1 + b)
return (math.exp(-0.5*(u**2 + (v*ab)**2)/sigma1**2)
+ b*math.exp(-0.5*(u**2 + (v*ab)**2)/sigma2**2))/(1 + b)


class SpatialModelPsfTestCase(unittest.TestCase):
Expand Down