From 402011e5be52264ad5ffb7de5dba94e0d3cc1341 Mon Sep 17 00:00:00 2001 From: CARFAC Team Date: Thu, 16 Nov 2023 13:58:53 -0800 Subject: [PATCH] Update Python CARFAC to v2 with two_cap IHC default. PiperOrigin-RevId: 583155314 --- python/np/carfac.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/python/np/carfac.py b/python/np/carfac.py index 90d7219..5b4b61e 100644 --- a/python/np/carfac.py +++ b/python/np/carfac.py @@ -1011,14 +1011,17 @@ class CarfacParams: n_ears: int -def design_carfac(n_ears: int = 1, - fs: float = 22050, - car_params: Optional[CarParams] = None, - agc_params: Optional[AgcParams] = None, - ihc_params: Optional[Union[IhcJustHwrParams, IhcOneCapParams, - IhcTwoCapParams]] = None, - one_cap: bool = True, - just_hwr: bool = False) -> CarfacParams: +def design_carfac( + n_ears: int = 1, + fs: float = 22050, + car_params: Optional[CarParams] = None, + agc_params: Optional[AgcParams] = None, + ihc_params: Optional[ + Union[IhcJustHwrParams, IhcOneCapParams, IhcTwoCapParams] + ] = None, + one_cap: bool = False, + just_hwr: bool = False, +) -> CarfacParams: """This function designs the CARFAC filterbank. CARFAC is a Cascade of Asymmetric Resonators with Fast-Acting Compression);