Optimized matching for the case of compression in the Switchyard

This commit is contained in:
2026-01-28 14:40:45 +01:00
parent 437d031b71
commit 9b09bb0914
7 changed files with 226 additions and 201 deletions

View File

@@ -93,6 +93,7 @@ class OpticsTools(QtWidgets.QMainWindow, QtCore.QObject, Ui_OpticsGUI):
#enfore the writing of a new lattice so that the magnet settings are in the new lattice
self.model.forceLat = True
self.plot.newData(twiss, energy)
self.model.checkMagnetLimit()
if self.UISaveMatchSettings.isChecked():
fileName = self.match.scriptdir+'/settings.json'
self.saveSettingsdirect(fileName)