Commit 82c559c3 authored by bayers's avatar bayers
Browse files

also write limiter statistics to csv file

parent 265180bf
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1199,7 +1199,7 @@ class IvasModeAnalyzer(IvasModeCollector):
                        fer_file_link = os.path.basename(fer_file)
                    info_table.append(tbl_row.format("\n".join([tbl_cell.format("FER file:"),
                                                 tbl_cell.format(fer_file_link)])))
                elif "networkSimulator_g192" in processing:
                elif "networkSimulator_g192" in processing[0]:
                    # fer file is the 1st argument in the processing command
                    jbm_file = processing[1]
                    if upload_location_fer is not None:
@@ -1213,10 +1213,11 @@ class IvasModeAnalyzer(IvasModeCollector):
                        jbm_file_link = os.path.basename(jbm_file)
                    info_table.append(tbl_row.format("\n".join([tbl_cell.format("JBM file:"),
                                                 tbl_cell.format(jbm_file_link)])))

        info_html=""
        if info_table:
            info_html=info_html_tmpl.format(table_tmpl.format("\n".join(info_table)))
        limiter_table = self.get_limiter_table()

        columns = ["Mode", "Item"]
        html_table=list()
        limiter_keys = limiter_table[0][2:]
@@ -1259,6 +1260,9 @@ class IvasModeAnalyzer(IvasModeCollector):
                for line in page:
                    f.write(line)

        limiter_table=[[str(x) if not isinstance(x,str) else x for x in line] for line in limiter_table]
        self.write_csv_file(os.path.realpath(f"limiter_{basefilename}"), limiter_table)

    @staticmethod
    def get_snr_report(file_name):
        SNR_report = {}