Initial Round of Sandbox implementation

This commit is contained in:
2025-05-07 10:55:46 +02:00
parent d3f72c9120
commit 7a362b191d
12 changed files with 242 additions and 99449 deletions

View File

@@ -21,6 +21,12 @@ class ReferenceManager:
#### all event selecting some tracking points
def swithToUserDefinedLocation(self):
n = self.parent.UITrackReference.count()
self.parent.UITrackReference.setCurrentIndex(n-1)
def updateReferenceLocation(self,location):
self.parent.UITrackLocation.setText(location)
def updateReferencePoint(self,twiss):
for key in self.twisswidget.keys():
@@ -47,7 +53,7 @@ class ReferenceManager:
return
twiss = self.reference['Reference'][key]['twiss']
name = self.reference['Reference'][key]['location']
self.parent.UITrackLocation.setText(name)
self.updateReferenceLocation(name)
self.updateReferencePoint(twiss)
def updateReferenceComboBox(self):