Initial tracking done, needs check for other twiss parameters in user defined

This commit is contained in:
2026-01-12 09:59:07 +01:00
parent ef48fe523d
commit 39ae60b9ec
3 changed files with 9 additions and 10 deletions

View File

@@ -79,6 +79,8 @@ class OpticsTools(QtWidgets.QMainWindow, Ui_OpticsGUI):
porthos = self.UIMatchPorthos.isChecked()
twiss = self.match.match(self.model.om,Injector = injector,Athos = athos, Aramis = aramis, Porthos = porthos)
energy = self.model.calcEnergyProfile(twiss)
#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)