Loading scripts/parse_loudness_data.py +3 −4 Original line number Diff line number Diff line Loading @@ -52,9 +52,9 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir): if in_fmt is not None: filtered_df = filtered_df[filtered_df["format"] == in_fmt] y_min, y_max = -36, -16 input_loudness = float(filtered_df["input_loudness"].unique()[0]) y_min, y_max = round(input_loudness) - 10, round(input_loudness) + 10 y_ticks = np.arange(y_min, y_max + 5, 5) # get unique bitrates and sort them bitrates = sorted(filtered_df["bitrate"].unique()) bitrate_to_idx = {br: idx for idx, br in enumerate(bitrates)} Loading @@ -74,7 +74,6 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir): ax = axes[idx] bw_data = filtered_df[filtered_df["bandwidth"] == bw] input_loudness = float(bw_data["input_loudness"].unique()[0]) if input_loudness is not None: # highlight ±1 LKFS green ax.axhspan( Loading Loading @@ -315,4 +314,4 @@ if __name__ == "__main__": print(f"\nError processing {task[1]} -> {task[2]}: {e}") completed += 1 progressbar_update(completed, total_tasks, width=50) print(f"✅ Processed {len(tasks)} format pairs successfully") print(f"\n✅ Processed {len(tasks)} format pairs successfully") Loading
scripts/parse_loudness_data.py +3 −4 Original line number Diff line number Diff line Loading @@ -52,9 +52,9 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir): if in_fmt is not None: filtered_df = filtered_df[filtered_df["format"] == in_fmt] y_min, y_max = -36, -16 input_loudness = float(filtered_df["input_loudness"].unique()[0]) y_min, y_max = round(input_loudness) - 10, round(input_loudness) + 10 y_ticks = np.arange(y_min, y_max + 5, 5) # get unique bitrates and sort them bitrates = sorted(filtered_df["bitrate"].unique()) bitrate_to_idx = {br: idx for idx, br in enumerate(bitrates)} Loading @@ -74,7 +74,6 @@ def plot_loudness_by_bandwidth(df, in_fmt, out_fmt, out_dir): ax = axes[idx] bw_data = filtered_df[filtered_df["bandwidth"] == bw] input_loudness = float(bw_data["input_loudness"].unique()[0]) if input_loudness is not None: # highlight ±1 LKFS green ax.axhspan( Loading Loading @@ -315,4 +314,4 @@ if __name__ == "__main__": print(f"\nError processing {task[1]} -> {task[2]}: {e}") completed += 1 progressbar_update(completed, total_tasks, width=50) print(f"✅ Processed {len(tasks)} format pairs successfully") print(f"\n✅ Processed {len(tasks)} format pairs successfully")