From 297b0dd7d371ef7221d17dcf132a2c9bf2399a89 Mon Sep 17 00:00:00 2001 From: x01dc Date: Mon, 27 Jul 2026 16:15:15 +0200 Subject: [PATCH] fix(flomni): stop calling write_pdf_report() twice per scan start tomo_scan()'s new-scan branch called write_pdf_report() once inside the "real e-account" if-branch and again unconditionally right after, so every scan start under a real account wrote the PDF, sent the scilog entry, and (as of the previous commit) uploaded to the samples folder twice. Keep only the unconditional call, matching LamNI's equivalent structure. --- csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py | 1 - 1 file changed, 1 deletion(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py index bf66e7a..f416cca 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py @@ -2529,7 +2529,6 @@ class Flomni( "test additional info", "BEC", ) - self.write_pdf_report() else: self.tomo_id = 0 self.write_pdf_report()