Commit 8f023818 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

add support for converting a delay error profile to an error pattern; add...

add support for converting a delay error profile to an error pattern; add offset delay error profile
parent e000bb03
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -147,11 +147,11 @@ input:
### e.g. frame error insertion or transport simulation for JBM testing
### can be given globally here or in individual conditions of type ivas or evs
# tx:
    ### REQUIRED: Type of bitstream processing; possible types: "JBM" or "FER"
    ### REQUIRED: Type of bitstream processing; possible types: "JBM" or "FER" or "JBM2FER"
    # type: "JBM"

    ### JBM
    ### REQUIRED: either error_pattern (and errpatt_late_loss_rate or errpatt_delay) or error_profile
    ### JBM or JBM2FER
    ### REQUIRED: either error_pattern (and errpatt_late_loss_rate or errpatt_delay for EVS or JBM2FER ) or error_profile
    ### delay error profile file
    # error_pattern: ".../dly_error_profile.dat"
    ### Late loss rate in percent for EVS
+2 −2
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ def evs_jbm(
        shift = random_seed((0, len_pattern - 1), master_seed, errpatt_seed)

    elif error_profile is not None:
        # if eror profile number is given
        # if error profile number is given
        if error_profile == 1 or error_profile == 2 or error_profile == 3:
            delay = 200
            num_frames_packet = 1
@@ -288,6 +288,6 @@ def validate_evs_jbm(
            )
    if n_frames_per_packet is not None and n_frames_per_packet not in [1, 2]:
        raise ValueError(
            f"n_frames_per_paket is {n_frames_per_packet}. Should be 1 or 2. Please check your configuration."
            f"n_frames_per_packet is {n_frames_per_packet}. Should be 1 or 2. Please check your configuration."
        )
    return
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ def validate_network_simulator(
            )
    if n_frames_per_packet is not None and n_frames_per_packet not in [1, 2]:
        raise ValueError(
            f"n_frames_per_paket is {n_frames_per_packet}. Should be 1 or 2. Please check your configuration."
            f"n_frames_per_packet is {n_frames_per_packet}. Should be 1 or 2. Please check your configuration."
        )

    return
+3 −0
Original line number Diff line number Diff line
version https://git-lfs.github.com/spec/v1
oid sha256:8062f7f527088c256638baf3199e0aba7e4f5ca05e0ce6ee2c1cb61438f5b2a7
size 25452
Loading