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

import signal in different way #125

Merged
merged 1 commit into from
Aug 9, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions decoimpact/business/entities/rules/filter_extremes_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import List

import xarray as _xr
import scipy as _sc
from scipy import signal
import numpy as _np

from decoimpact.business.entities.rules.i_array_based_rule import IArrayBasedRule
Expand Down Expand Up @@ -128,7 +128,7 @@ def _process_peaks(
factor = 1
if extreme_type == "troughs":
factor = -1
peaks, _ = _sc.signal.find_peaks(factor * arr, distance=distance)
peaks, _ = signal.find_peaks(factor * arr, distance=distance)
values = arr[peaks]
if mask:
values = True
Expand Down
Binary file modified tests/data/entities/test_data_access_layer_data/results.nc
Binary file not shown.
Loading