Skip to content
Open
5 changes: 3 additions & 2 deletions monai/transforms/signal/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,11 @@ def __call__(self, signal: np.ndarray) -> Any:
Args:
signal: signal to be frequency removed
"""
signal = convert_to_tensor(signal, dtype=torch.double)
b_notch, a_notch = convert_to_tensor(
iirnotch(self.frequency, self.quality_factor, self.sampling_freq), dtype=torch.float
iirnotch(self.frequency, self.quality_factor, self.sampling_freq), dtype=torch.double
)
y_notched = filtfilt(convert_to_tensor(signal), a_notch, b_notch)
y_notched = filtfilt(signal, a_notch, b_notch)

return y_notched

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Full requirements for developments
-r requirements-min.txt
pytorch-ignite==0.4.11
torchaudio
gdown>=4.7.3
scipy>=1.12.0; python_version >= '3.9'
itk>=5.2
Expand Down
Loading