From faab234d0536c9374e966d8d42008eae9ba61fe2 Mon Sep 17 00:00:00 2001 From: Antoine Date: Thu, 29 Jan 2026 20:32:55 +0000 Subject: [PATCH] fix: update Plotly.js CDN to 3.3.1 (match Python lib 6.5.2 bdata format), show 50 modes --- tools/generate_optical_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/generate_optical_report.py b/tools/generate_optical_report.py index 9dda8f2f..457433ed 100644 --- a/tools/generate_optical_report.py +++ b/tools/generate_optical_report.py @@ -389,7 +389,7 @@ def make_surface_plot(X, Y, W_res, mask, inner_radius=None, title="", amp=0.5, d return fig.to_html(include_plotlyjs=False, full_html=False, div_id=f"surface_{title.replace(' ','_')}") -def make_bar_chart(coeffs, title="Zernike Coefficients", max_modes=30): +def make_bar_chart(coeffs, title="Zernike Coefficients", max_modes=50): """Create horizontal bar chart of Zernike coefficient magnitudes.""" n = min(len(coeffs), max_modes) labels = [str(zernike_label(j))[:40] for j in range(1, n+1)] @@ -890,7 +890,7 @@ def generate_report( {title} - +