Initial Reference optics done

This commit is contained in:
reiche committed 2026-01-26 12:51:50 +01:00
1 parent ac3e68082d
commit 4725565a80
8 files changed
+342 -344

No files matched your search

+6 -2
View File
@@ -31,8 +31,12 @@ class ReferenceManager:
if i is 0:
tag = 'Start'
else:
tag = 'Matchpoint %d' % i
self.reference[tag]= {'Location':key,'Twiss':matchmaker.referencePoints[key]}
label = matchmaker.referencePoints[key]['Label']
if label is None:
tag = 'Matchpoint %d' % i
else:
tag = label
self.reference[tag]= {'Location':key,'Twiss':matchmaker.referencePoints[key]['Twiss']}
self.updateReferenceComboBox()
def swithToUserDefinedLocation(self):