From 1362a63a85598ee3d1747e003fe1204d07c914e3 Mon Sep 17 00:00:00 2001 From: x01dc Date: Tue, 21 Jul 2026 16:24:33 +0200 Subject: [PATCH] fix/disable lamni's broken upload_last_pon.sh call Confirmed this script no longer works and needs a rewrite. Commented out the subprocess.run() call in write_pdf_report(), mirroring Flomni which already has the identical call disabled the same way. omny.py's own copy is left untouched (out of scope for this migration). Co-Authored-By: Claude Sonnet 5 --- csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py index d8fe500..cf71c76 100644 --- a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py +++ b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py @@ -1964,9 +1964,11 @@ class LamNI(TomoQueueMixin, LamNIAlignmentMixin, LamNIOpticsMixin, LamniGuiTools file.write( f"\nAt-each-angle hook source ('{self.at_each_angle_hook}'):\n{hook_source}" ) - subprocess.run( - "xterm /work/sls/spec/local/XOMNY/bin/upload/upload_last_pon.sh &", shell=True - ) + # upload_last_pon.sh no longer works and needs a rewrite -- disabled + # for now (mirrors Flomni, which already has this commented out). + # subprocess.run( + # "xterm /work/sls/spec/local/XOMNY/bin/upload/upload_last_pon.sh &", shell=True + # ) # Same tolerance as write_to_scilog(): a session without scilog/logbook # configured (e.g. a dev/sim session) must not crash report generation # over the logbook upload -- the PDF itself is already written above.