From 3b474c89c8e6db4b2963b1cb45fa7ce1885aeb79 Mon Sep 17 00:00:00 2001 From: x12sa Date: Tue, 24 Mar 2026 15:34:36 +0100 Subject: [PATCH] removed write subtomo to scilog --- .../plugins/flomni/flomni.py | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py index a015475..ac2351c 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py @@ -1659,19 +1659,6 @@ class Flomni( print(scliog_content) bec.messaging.scilog.new().add_text(scilog_content.replace("\n", "
")).send() - def _write_subtomo_to_scilog(self, subtomo_number): - pass - # dev = builtins.__dict__.get("dev") - # bec = builtins.__dict__.get("bec") - # if self.tomo_id > 0: - # tags = ["BEC_subtomo", self.sample_name, f"tomo_id_{self.tomo_id}"] - # else: - # tags = ["BEC_subtomo", self.sample_name] - # self.write_to_scilog( - # f"Starting subtomo: {subtomo_number}. First scan number: {bec.queue.next_scan_number}.", - # tags, - # ) - def sub_tomo_scan(self, subtomo_number, start_angle=None): """ Performs a sub tomogram scan. @@ -1679,18 +1666,6 @@ class Flomni( subtomo_number (int): The sub tomogram number. start_angle (float, optional): The start angle of the scan. Defaults to None. """ - # dev = builtins.__dict__.get("dev") - # bec = builtins.__dict__.get("bec") - # if self.tomo_id > 0: - # tags = ["BEC_subtomo", self.sample_name, f"tomo_id_{self.tomo_id}"] - # else: - # tags = ["BEC_subtomo", self.sample_name] - # self.write_to_scilog( - # f"Starting subtomo: {subtomo_number}. First scan number: {bec.queue.next_scan_number}.", - # tags, - # ) - - self._write_subtomo_to_scilog(subtomo_number) if start_angle is not None: print(f"Sub tomo scan with start angle {start_angle} requested.") @@ -1885,7 +1860,6 @@ class Flomni( while True: angle, subtomo_number = self._golden(ii, self.golden_ratio_bunch_size, 180, 1) if previous_subtomo_number != subtomo_number: - self._write_subtomo_to_scilog(subtomo_number) if ( subtomo_number % 2 == 1 and ii > 10 @@ -1933,7 +1907,6 @@ class Flomni( ii, int(180 / self.tomo_angle_stepsize), 180, 1, 0 ) if previous_subtomo_number != subtomo_number: - self._write_subtomo_to_scilog(subtomo_number) if ( subtomo_number % 2 == 1 and ii > 10