Commit 7006bb75 authored by Mayank Mittal's avatar Mayank Mittal

Runs formatter to fix lint issues

parent dd011a04
...@@ -127,9 +127,7 @@ class DigitalFilter(ModifierBase): ...@@ -127,9 +127,7 @@ class DigitalFilter(ModifierBase):
:math:`B = [1 - \alpha]`. :math:`B = [1 - \alpha]`.
""" """
def __init__( def __init__(self, cfg: modifier_cfg.DigitalFilterCfg, data_dim: tuple[int, ...], device: str):
self, cfg: modifier_cfg.DigitalFilterCfg, data_dim: tuple[int, ...], device: str
) -> None:
"""Initializes digital filter. """Initializes digital filter.
Args: Args:
...@@ -143,9 +141,7 @@ class DigitalFilter(ModifierBase): ...@@ -143,9 +141,7 @@ class DigitalFilter(ModifierBase):
""" """
# check that filter coefficients are not None # check that filter coefficients are not None
if cfg.A is None or cfg.B is None: if cfg.A is None or cfg.B is None:
raise ValueError( raise ValueError("Digital filter coefficients A and B must not be None. Please provide valid coefficients.")
"Digital filter coefficients A and B must not be None. Please provide valid coefficients."
)
# initialize parent class # initialize parent class
super().__init__(cfg, data_dim, device) super().__init__(cfg, data_dim, device)
...@@ -217,9 +213,7 @@ class Integrator(ModifierBase): ...@@ -217,9 +213,7 @@ class Integrator(ModifierBase):
:math:`\Delta t` is the time step between samples. :math:`\Delta t` is the time step between samples.
""" """
def __init__( def __init__(self, cfg: modifier_cfg.IntegratorCfg, data_dim: tuple[int, ...], device: str):
self, cfg: modifier_cfg.IntegratorCfg, data_dim: tuple[int, ...], device: str
):
"""Initializes the integrator configuration and state. """Initializes the integrator configuration and state.
Args: Args:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment