Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Jan 30, 2025
1 parent 66e9005 commit 6833cf1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dgpost/transform/reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
from dgpost.utils.helpers import separate_data, load_data


def _find_peak(near, absgamma, freq, height = 0.2) -> int:
def _find_peak(near, absgamma, freq, height=0.2) -> int:
if near is None:
return np.argmax((1 - absgamma))
else:
peaks, _ = find_peaks((1 - absgamma), height = height)
peaks, _ = find_peaks((1 - absgamma), height=height)
nearest = None
for pi in peaks:
if nearest is None:
Expand All @@ -51,7 +51,6 @@ def _find_peak(near, absgamma, freq, height = 0.2) -> int:
return nearest



@load_data(
("real", None, list),
("imag", None, list),
Expand Down

0 comments on commit 6833cf1

Please sign in to comment.