From e7df1209d1a636fbc7f6b607b911da5f26ae7402 Mon Sep 17 00:00:00 2001 From: x01dc Date: Mon, 27 Jul 2026 17:35:33 +0200 Subject: [PATCH] fix(LamNI): lfzp_info() printed focal distance in meters labeled as mm focal_distance was computed in meters (consistent with the rest of the function, e.g. beam_size's own internal *1000 conversions), but the table row printed it directly as "X.XX mm" with no conversion -- off by 1000x (e.g. showing "0.05 mm" instead of "51.34 mm"). FlOMNI's and OMNY's equivalent ffzp_info()/ofzp_info() already convert correctly; fix just the display here to match, without touching the meters-based internal variable beam_size still depends on. --- .../bec_ipython_client/plugins/LamNI/lamni_optics_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni_optics_mixin.py b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni_optics_mixin.py index a7f8683..981d526 100644 --- a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni_optics_mixin.py +++ b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni_optics_mixin.py @@ -417,7 +417,7 @@ class LamNIOpticsMixin: ) table.add_row( f"{diameter*1e6:.2f} microns", - f"{focal_distance:.2f} mm", + f"{focal_distance*1000:.2f} mm", f"{beam_size:.2f} microns", )