Commit 5575ec8f authored by norvell's avatar norvell
Browse files

Add clipping argument to parse_xml_report.py to avoid problems with existing comparison scripts

parent 3737191d
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1666,7 +1666,7 @@ check-clipping:
    - make -j
    - tests/scale_pcm.py ./scripts/testv/ 3.162 # +10 dB level
    - python3 -m pytest $TESTS_DIR_CODEC_BE_ON_MR -v --update_ref 1 --html=report.html --self-contained-html --junit-xml=report-junit.xml --ref_encoder_path ./IVAS_cod --ref_decoder_path ./IVAS_dec --dut_encoder_path ./IVAS_cod --dut_decoder_path ./IVAS_dec
    - python3 scripts/parse_xml_report.py report-junit.xml report.csv
    - python3 scripts/parse_xml_report.py report-junit.xml report.csv --clipping
  artifacts:
    name: "check-clipping--sha-$CI_COMMIT_SHORT_SHA--results"
    when: always
+8 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ from xml.etree import ElementTree
Parse a junit report and create a summary report.
"""

PROPERTIES = ["MLD", "MAXIMUM ABS DIFF", "MIN_SSNR", "MIN_ODG","ENC_CORE_CLIPPING"]
PROPERTIES = ["MLD", "MAXIMUM ABS DIFF", "MIN_SSNR", "MIN_ODG"]

IVAS_FORMATS = {
    "Stereo": r"stereo",
@@ -64,6 +64,11 @@ if __name__ == "__main__":
        action="store_true",
        help="Parse using EVS 26.444 formats",
    )
    parser.add_argument(
        "--clipping",
        action="store_true",
        help="Extract clipping information. Available if encoder has been run with DEBUGGING active.",
    )
    args = parser.parse_args()
    xml_report = args.xml_report
    csv_file = args.csv_file
@@ -73,6 +78,8 @@ if __name__ == "__main__":
    else:
        FORMATS = IVAS_FORMATS
        CATEGORIES = IVAS_CATEGORIES
    if args.clipping:
        PROPERTIES += ["ENC_CORE_CLIPPING"]
    tree = ElementTree.parse(xml_report)

    testsuite = tree.find(".//testsuite")