From 349fa09a327fc60d52f2c75b6a67fa6b2891c473 Mon Sep 17 00:00:00 2001 From: x01dc Date: Mon, 9 Mar 2026 13:37:26 +0100 Subject: [PATCH] fixed syntax --- .../bec_ipython_client/plugins/LamNI/lamni.py | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py index e2defc6..9fb49b5 100644 --- a/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py +++ b/csaxs_bec/bec_ipython_client/plugins/LamNI/lamni.py @@ -61,20 +61,6 @@ class LamNI(LamNIOpticsMixin, LamniGuiTools): self.progress["total_projections"] = 1 self.progress["angle"] = 0 - # ------------------------------------------------------------------ - # Beamline checks — delegated to BeamlineChecker - # ------------------------------------------------------------------ - - @property - def beamline_checks_enabled(self): - return self.bl_chk.checks_enabled - - @beamline_checks_enabled.setter - def beamline_checks_enabled(self, val: bool): - self.bl_chk.checks_enabled = val - - def get_beamline_checks_enabled(self): - self.bl_chk.print_status() # ------------------------------------------------------------------ # Special angles @@ -552,7 +538,7 @@ class LamNI(LamNIOpticsMixin, LamniGuiTools): print(f"Starting LamNI scan for angle {angle} in subtomo {subtomo_number}") self._print_progress() while not successful: - self.bl_chk.start() + self.bl_chk._bl_chk_start() if not self.special_angles: self._current_special_angles = [] if self._current_special_angles: @@ -579,10 +565,10 @@ class LamNI(LamNIOpticsMixin, LamniGuiTools): for scan_nr in range(start_scan_number, end_scan_number): self._write_tomo_scan_number(scan_nr, angle, subtomo_number) - if self.bl_chk.stop() and not error_caught: + if self.bl_chk._bl_chk_stop() and not error_caught: successful = True else: - self.bl_chk.wait_until_recovered() + self.bl_chk._bl_chk_wait_until_recovered() def _golden(self, ii, howmany_sorted, maxangle=360, reverse=False): """Return the ii-th golden ratio angle within sorted bunches and its subtomo number."""