Skip to content

Commit

Permalink
Fix taps type in Placebo scalers
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Oct 20, 2023
1 parent 8bda5c1 commit 9929d11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vskernels/kernels/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)


Expand Down

0 comments on commit 9929d11

Please sign in to comment.