From 4f19d2c2bec5b772d9fd2f25b1e4afa957c5973d Mon Sep 17 00:00:00 2001 From: linuswck Date: Thu, 10 Oct 2024 15:23:57 +0800 Subject: [PATCH] driver: Expose the upper and lower limit settings for Sinc3WithFineODR Filter Cfg --- pykirdy/driver/kirdy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pykirdy/driver/kirdy.py b/pykirdy/driver/kirdy.py index cb7d653..005424c 100644 --- a/pykirdy/driver/kirdy.py +++ b/pykirdy/driver/kirdy.py @@ -140,8 +140,10 @@ class FilterConfig: return "Sinc3" class Sinc3WithFineODR(): + upper_limit = 31250 + lower_limit = 1.907465 def __init__(self, rate): - assert rate >= 1.907465 and rate <= 31250 + assert rate >= self.lower_limit and rate <= self.upper_limit self.rate = float(rate) def _odr_type(self):