fix: adjust gap when changing energy
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped

This commit is contained in:
perl_d committed 2026-09-01 11:22:55 +02:00
1 parent 116ea179c4
commit e8bd2f59c6
1 file changed
+1 -1
+1 -1
View File
@@ -383,7 +383,7 @@ class BECClientWorker:
logger.info(f"Current energy: {current_energy:.1f} eV")
logger.info(f"Change energy requested: from {current_energy:.1f} to {value:.1f} eV")
try:
self.macros.bl_energy(value, move_gap=False, mono_scan=True, plot=plot)
self.macros.bl_energy(value, move_gap=True, mono_scan=True, plot=plot)
except Exception as e:
raise self._bec_error(
e,