Skip to content

Commit

Permalink
ignore some pylint rules for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jobar8 committed Sep 21, 2024
1 parent 44ec196 commit 28c7cc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion interpies/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def alpha_blend(rgb, intensity, alpha=0.7):
return alpha * rgb + (1 - alpha) * intensity


def imshow_hs( # noqa: PLR0913
def imshow_hs( # noqa: PLR0912, PLR0913, PLR0915
source,
ax=None,
cmap='geosoft',
Expand Down
2 changes: 1 addition & 1 deletion interpies/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def grid_to_points(xll, yll, cellsize, nrows, ncols, flipy=True):
return np.column_stack((xGrid.flatten(), yGrid.flatten()))


def warp(
def warp( # noqa: PLR0913
inputFile,
outputFile,
xsize,
Expand Down
6 changes: 3 additions & 3 deletions interpies/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def fs_coefficients(tap=5, direction='dx'):
and Simoncelli (2004).
"""

if tap == 5:
if tap == 5: # noqa: PLR2004
if direction in ['dx', 'dy', 'dxdy']:
# 5-tap 1st derivative coefficients. These are optimal if you are just
# seeking the 1st deriavtives.
Expand All @@ -378,7 +378,7 @@ def fs_coefficients(tap=5, direction='dx'):
d1 = np.array([0.104550, 0.292315, 0.000000, -0.292315, -0.104550])
d2 = np.array([0.232905, 0.002668, -0.471147, 0.002668, 0.232905])

elif tap == 7:
elif tap == 7: # noqa: PLR2004
# 7-tap interpolant and 1st and 2nd derivative coefficients
p = np.array([0.004711, 0.069321, 0.245410, 0.361117, 0.245410, 0.069321, 0.004711])
d1 = np.array([0.018708, 0.125376, 0.193091, 0.000000, -0.193091, -0.125376, -0.018708])
Expand Down Expand Up @@ -622,7 +622,7 @@ def unpad_full(data, nrows, ncols):


# put everything together
def fourier_transform(
def fourier_transform( # noqa: PLR0912, PLR0913
data,
cellsize,
trans='dx',
Expand Down

0 comments on commit 28c7cc7

Please sign in to comment.