Loading ivas_processing_scripts/audiotools/wrappers/networkSimulator.py +8 −2 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ ERROR_PATTERNS_DIR = Path(__file__).parent.parent.parent.joinpath("dly_error_pro def validate_network_simulator( error_pattern: Optional[Union[Path, str]] = None, error_profile: Optional[int] = None, n_frames_per_paket: Optional[int] = None, ): if find_binary("networkSimulator_g192")is None: raise FileNotFoundError( Loading @@ -63,7 +64,10 @@ def validate_network_simulator( raise ValueError( f"JBM profile number {error_profile} does not exist, should be between {LIST_JBM_PROFILES[0]} and {LIST_JBM_PROFILES[-1]}" ) if n_frames_per_paket is not None and n_frames_per_paket not in [1,2]: raise ValueError( f"n_frames_per_paket is {n_frames_per_paket}. Should be 1 or 2. Please check your configuration." ) def network_simulator( error_pattern: Union[str, Path], Loading @@ -82,6 +86,8 @@ def network_simulator( Path to input bitstream file out_bitstream: Union[str, Path] Output path for modified bitstream n_frames_per_paket: int, number of frames per paket [1,2] """ # find binary Loading Loading @@ -122,7 +128,7 @@ def apply_network_simulator( n_frames_per_paket: Optional[int] = None, ) -> None: """ Function to apply a jbm error profile to a bitstreaam Function to apply a network simulator profile to a bitstreaam Parameters ---------- Loading ivas_processing_scripts/processing/ivas.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class IVAS(Processing): # TODO: if tx_fer or tx_jbm test for existence of bitstream processing binaries and # existence of error pattern files (if given) already here if self.tx_jbm is not None: validate_network_simulator(self.tx_jbm["error_pattern"],self.tx_jbm["error_profile"]) validate_network_simulator(self.tx_jbm["error_pattern"],self.tx_jbm["error_profile"], self.tx_jbm["n_frames_per_paket"]) def process( Loading Loading
ivas_processing_scripts/audiotools/wrappers/networkSimulator.py +8 −2 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ ERROR_PATTERNS_DIR = Path(__file__).parent.parent.parent.joinpath("dly_error_pro def validate_network_simulator( error_pattern: Optional[Union[Path, str]] = None, error_profile: Optional[int] = None, n_frames_per_paket: Optional[int] = None, ): if find_binary("networkSimulator_g192")is None: raise FileNotFoundError( Loading @@ -63,7 +64,10 @@ def validate_network_simulator( raise ValueError( f"JBM profile number {error_profile} does not exist, should be between {LIST_JBM_PROFILES[0]} and {LIST_JBM_PROFILES[-1]}" ) if n_frames_per_paket is not None and n_frames_per_paket not in [1,2]: raise ValueError( f"n_frames_per_paket is {n_frames_per_paket}. Should be 1 or 2. Please check your configuration." ) def network_simulator( error_pattern: Union[str, Path], Loading @@ -82,6 +86,8 @@ def network_simulator( Path to input bitstream file out_bitstream: Union[str, Path] Output path for modified bitstream n_frames_per_paket: int, number of frames per paket [1,2] """ # find binary Loading Loading @@ -122,7 +128,7 @@ def apply_network_simulator( n_frames_per_paket: Optional[int] = None, ) -> None: """ Function to apply a jbm error profile to a bitstreaam Function to apply a network simulator profile to a bitstreaam Parameters ---------- Loading
ivas_processing_scripts/processing/ivas.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class IVAS(Processing): # TODO: if tx_fer or tx_jbm test for existence of bitstream processing binaries and # existence of error pattern files (if given) already here if self.tx_jbm is not None: validate_network_simulator(self.tx_jbm["error_pattern"],self.tx_jbm["error_profile"]) validate_network_simulator(self.tx_jbm["error_pattern"],self.tx_jbm["error_profile"], self.tx_jbm["n_frames_per_paket"]) def process( Loading