From 38345ba8f844c16da1acc616894c39657498c06a Mon Sep 17 00:00:00 2001 From: l-bick <43580954+l-bick@users.noreply.github.com> Date: Mon, 27 May 2024 14:00:16 +0200 Subject: [PATCH] hotfix: sampling-rate propagation to unset template --- rlign/rlign.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rlign/rlign.py b/rlign/rlign.py index 055786f..5a5636b 100644 --- a/rlign/rlign.py +++ b/rlign/rlign.py @@ -76,7 +76,9 @@ def __init__( if template: self.template = template else: - self.template = Template() + self.template = Template( + sampling_rate=sampling_rate + ) self.select_lead = select_lead self.num_workers = num_workers self.neurokit_method = neurokit_method @@ -121,7 +123,7 @@ def _normalize_interval( source_rpeaks_intervals: np.ndarray, fallback: Optional[bool] = False, hr: int = None, - ) -> (np.ndarray, int): + ) -> tuple[np.ndarray, int]: """ Normalizes each interval independently based on the scale_method between rpeaks.