Skip to content

Commit

Permalink
Fixing Black errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Mar 6, 2024
1 parent 244aefb commit 0eb6116
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions regridding/_interp_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ def ndarray_linear_interpolation(
for ax in range(-ndim_broadcasted_a, 0)
)
shape_broadcasted_indices = tuple(
shape_indices[ax]
if ax in axis_indices
else shape_orthogonal[axis_orthogonal_indices.index(ax)]
(
shape_indices[ax]
if ax in axis_indices
else shape_orthogonal[axis_orthogonal_indices.index(ax)]
)
for ax in range(-ndim_broadcasted_indices, 0)
)

Expand All @@ -125,9 +127,11 @@ def index_a_indices(index: tuple[int, ...]) -> tuple[tuple, tuple]:
for ax in range(-ndim_broadcasted_a, 0)
)
index_indices = tuple(
slice(None)
if ax in axis_indices
else index[axis_orthogonal_indices.index(ax)]
(
slice(None)
if ax in axis_indices
else index[axis_orthogonal_indices.index(ax)]
)
for ax in range(-ndim_broadcasted_indices, 0)
)
return index_a, index_indices
Expand Down

0 comments on commit 0eb6116

Please sign in to comment.