SF+ matching and support for ELegant lattice export

This commit is contained in:
reiche committed 2026-10-13 09:39:40 +02:00
1 parent 85b8e89917
commit 4e9a35b0e7
8 files changed
+818 -323

No files matched your search

+16
View File
@@ -433,6 +433,15 @@ class Ui_OpticsGUI(object):
self.label_17.setObjectName("label_17")
self.gridLayout_6.addWidget(self.label_17, 2, 0, 1, 1)
self.verticalLayout_3.addLayout(self.gridLayout_6)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.UIDoInitialEnergy = QtWidgets.QCheckBox(self.widget)
self.UIDoInitialEnergy.setObjectName("UIDoInitialEnergy")
self.horizontalLayout_3.addWidget(self.UIDoInitialEnergy)
self.UIInitialEnergy = QtWidgets.QLineEdit(self.widget)
self.UIInitialEnergy.setObjectName("UIInitialEnergy")
self.horizontalLayout_3.addWidget(self.UIInitialEnergy)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.label_19 = QtWidgets.QLabel(self.widget)
font = QtGui.QFont()
font.setBold(True)
@@ -717,9 +726,13 @@ class Ui_OpticsGUI(object):
self.actionOpenMatchEditor.setObjectName("actionOpenMatchEditor")
self.actionOpenScriptEditor = QtWidgets.QAction(OpticsGUI)
self.actionOpenScriptEditor.setObjectName("actionOpenScriptEditor")
self.actionExport_Elegant = QtWidgets.QAction(OpticsGUI)
self.actionExport_Elegant.setObjectName("actionExport_Elegant")
self.menuFile.addAction(self.actionOpen_2)
self.menuFile.addAction(self.actionSave)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionExport_Elegant)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionQuit)
self.menuFile.addSeparator()
self.menuHelp.addAction(self.actionAbout)
@@ -783,6 +796,8 @@ class Ui_OpticsGUI(object):
self.UIInitBetay.setText(_translate("OpticsGUI", "20"))
self.UIInitAlphay.setText(_translate("OpticsGUI", "0"))
self.label_17.setText(_translate("OpticsGUI", "alpha"))
self.UIDoInitialEnergy.setText(_translate("OpticsGUI", "Initialize Energy (MeV)"))
self.UIInitialEnergy.setText(_translate("OpticsGUI", "157"))
self.label_19.setText(_translate("OpticsGUI", "Matching Variables"))
self.UIModifyKnobs.setText(_translate("OpticsGUI", "Overwrite default values for matching variables "))
item = self.UIMatchKnobs.horizontalHeaderItem(0)
@@ -869,3 +884,4 @@ class Ui_OpticsGUI(object):
self.actionOpenMatch.setText(_translate("OpticsGUI", "Open New Matching File..."))
self.actionOpenMatchEditor.setText(_translate("OpticsGUI", "Open Matching File in Editor..."))
self.actionOpenScriptEditor.setText(_translate("OpticsGUI", "Open Script in Editor..."))
self.actionExport_Elegant.setText(_translate("OpticsGUI", "Export Elegant Lattice..."))
+25
View File
@@ -709,6 +709,24 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="UIDoInitialEnergy">
<property name="text">
<string>Initialize Energy (MeV)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="UIInitialEnergy">
<property name="text">
<string>157</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_19">
<property name="font">
@@ -1006,6 +1024,8 @@
<addaction name="actionOpen_2"/>
<addaction name="actionSave"/>
<addaction name="separator"/>
<addaction name="actionExport_Elegant"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
<addaction name="separator"/>
</widget>
@@ -1362,6 +1382,11 @@
<string>Open Script in Editor...</string>
</property>
</action>
<action name="actionExport_Elegant">
<property name="text">
<string>Export Elegant Lattice...</string>
</property>
</action>
</widget>
<resources/>
<connections>