Initial Reference optics done

This commit is contained in:
2026-01-13 15:06:24 +01:00
parent 8e55426f7c
commit c58ac2655d
8 changed files with 343 additions and 345 deletions

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):