From 9929d11a25c2b706099d469b0989a741fe94b878 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Fri, 20 Oct 2023 22:58:17 +0200 Subject: [PATCH] Fix taps type in Placebo scalers --- vskernels/kernels/various.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vskernels/kernels/various.py b/vskernels/kernels/various.py index ba64ad0..7215aa6 100644 --- a/vskernels/kernels/various.py +++ b/vskernels/kernels/various.py @@ -78,12 +78,12 @@ def __init__(self, b: float = 0.0, c: float = 0.5, radius: int | None = None, ** class EwaLanczos(Placebo): _kernel = 'ewa_lanczos' - def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: + def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None: super().__init__(taps, None, None, **kwargs) class EwaJinc(EwaLanczos): - def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: + def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None: print(DeprecationWarning('EwaJinc is deprecated! Switch over to EwaLanczos.')) super().__init__(taps, None, None, **kwargs) @@ -92,21 +92,21 @@ def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: class EwaGinseng(Placebo): _kernel = 'ewa_ginseng' - def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: + def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None: super().__init__(taps, None, None, **kwargs) class EwaHann(Placebo): _kernel = 'ewa_hann' - def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: + def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None: super().__init__(taps, None, None, **kwargs) class EwaHannSoft(Placebo): _kernel = 'haasnsoft' - def __init__(self, taps: int = 3.2383154841662362076499, **kwargs: Any) -> None: + def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None: super().__init__(taps, None, None, **kwargs)