Skip to content

Commit

Permalink
Rename chunk.fft_filter import to fft_filter_chunk to avoid duplication
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <[email protected]>
  • Loading branch information
hakonanes committed Oct 1, 2024
1 parent 516b063 commit 2146d79
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/kikuchipy/signals/ebsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@
fft_filter,
fft_frequency_vectors,
)
from kikuchipy.pattern.chunk import (
_average_neighbour_patterns,
fft_filter,
get_dynamic_background,
)
from kikuchipy.pattern.chunk import _average_neighbour_patterns
from kikuchipy.pattern.chunk import fft_filter as fft_filter_chunk
from kikuchipy.pattern.chunk import get_dynamic_background
from kikuchipy.signals._kikuchipy_signal import KikuchipySignal2D, LazyKikuchipySignal2D
from kikuchipy.signals.util._crystal_map import (
_equal_phase,
Expand Down Expand Up @@ -895,7 +893,7 @@ def fft_filter(
raise ValueError(f"{function_domain} must be either of {function_domains}")

filtered_patterns = dask_array.map_blocks(
func=fft_filter,
func=fft_filter_chunk,
filter_func=filter_func,
transfer_function=transfer_function,
dtype_out=dtype_out,
Expand Down

0 comments on commit 2146d79

Please sign in to comment.