Skip to content

Commit

Permalink
hotfix: sampling-rate propagation to unset template
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bick committed May 27, 2024
1 parent 697445a commit 38345ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rlign/rlign.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 38345ba

Please sign in to comment.