Skip to content

Commit

Permalink
import signal in different way
Browse files Browse the repository at this point in the history
  • Loading branch information
CindyvdVries committed Aug 9, 2024
1 parent 410b447 commit 0401b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.

0 comments on commit 0401b86

Please sign in to comment.