Commit bc8c4ee9 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

add comment about disabling error for padding ISM/MASA based inputs

parent d6b5e911
Loading
Loading
Loading
Loading
Loading
+4 −30
Original line number Diff line number Diff line
@@ -574,34 +574,10 @@ def validate_input_files(cfg: TestConfig):

    # always throw an error for ISM (and MASA) input
    if input_format.startswith("ISM") or input_format.startswith("MASA"):
        isosba = input_format in [
            "ISM1SBA1",
            "ISM1SBA2",
            "ISM1SBA3",
            "ISM2SBA1",
            "ISM2SBA2",
            "ISM2SBA3",
            "ISM3SBA1",
            "ISM3SBA2",
            "ISM3SBA3",
            "ISM4SBA1",
            "ISM4SBA2",
            "ISM4SBA3",
            "ISM1PLANARSBA1",
            "ISM1PLANARSBA2",
            "ISM1PLANARSBA3",
            "ISM2PLANARSBA1",
            "ISM2PLANARSBA2",
            "ISM2PLANARSBA3",
            "ISM3PLANARSBA1",
            "ISM3PLANARSBA2",
            "ISM3PLANARSBA3",
            "ISM4PLANARSBA1",
            "ISM4PLANARSBA2",
            "ISM4PLANARSBA3",
        ]
        if not isosba:
        frame_alignment = "error"
        # NOTE: to override this warning for local testing, simply uncomment the below line
        # this will override the above variable and enable padding for non-aligned files
        # frame_alignment = "padding"

    if frame_alignment == "padding":
        # Create new input directory for padded files
@@ -678,8 +654,6 @@ def validate_input_files(cfg: TestConfig):
                    copyfile(item, aligned_output_dir / item.name)
                    # Update audio file path in list
                    cfg.items_list[i] = aligned_output_dir / item.name
                else:
                    pass

    if frame_alignment == "padding":
        # copy over any metadata files