Some further debugging and some nice optics
This commit is contained in:
@@ -58,12 +58,12 @@ class MatchManager:
|
||||
return self.FODO[reference]
|
||||
|
||||
def defineFODO(self):
|
||||
self.FODO.clear()
|
||||
self.FODO['Injector']={'Sequence':'SINSB04','Destination': 'SARBD01',
|
||||
'Quads':['sinsb04.mqua130.k1','sinsb04.mqua230.k1'],
|
||||
'Init':[0.722,-0.7156],'FlipPol':False,'mu':0.2,'Result':None,'Twiss':None}
|
||||
Periodic={}
|
||||
Periodic['Injector']={'Sequence':'SINSB04','Destination': 'SARBD01',
|
||||
'Quads':['sinsb04.mqua130.k1','sinsb04.mqua230.k1'],
|
||||
'Init':[0.722,-0.7156],'FlipPol':False,'mu':0.2,'Matched':False, 'Twiss':None}
|
||||
|
||||
self.FODO['Linac 1']={'Sequence':'S10CB01','Destination': 'SARBD01',
|
||||
'Quads':['s10cb01.mqua230.k1','s10cb01.mqua430.k1'],
|
||||
'Init':[-1.491,1.4905],'FlipPol':False,'mu':0.1883,'Result':None,'Twiss':None}
|
||||
Periodic['Linac 1']={'Sequence':'S10CB01','Destination': 'SARBD01',
|
||||
'Quads':['s10cb01.mqua230.k1','s10cb01.mqua430.k1'],
|
||||
'Init':[-1.491,1.4905],'FlipPol':False,'mu':0.1883,'Result':None,'Twiss':None}
|
||||
|
||||
|
||||
4
plot.py
4
plot.py
@@ -38,6 +38,8 @@ class OpticsPlot(QtWidgets.QMainWindow, Ui_OpticsPlotGUI):
|
||||
self.PAlphay.toggled.connect(self.doplot)
|
||||
self.PEtax.toggled.connect(self.doplot)
|
||||
self.PEtay.toggled.connect(self.doplot)
|
||||
self.PMux.toggled.connect(self.doplot)
|
||||
self.PMuy.toggled.connect(self.doplot)
|
||||
self.PR56.toggled.connect(self.doplot)
|
||||
self.PEnergy.toggled.connect(self.doplot)
|
||||
self.PStart.editingFinished.connect(self.doplot)
|
||||
@@ -96,7 +98,7 @@ class OpticsPlot(QtWidgets.QMainWindow, Ui_OpticsPlotGUI):
|
||||
self.doplot()
|
||||
|
||||
def newReference(self):
|
||||
self.twissref=copy.deepcopy(self.twiss)
|
||||
self.twissref=self.twiss
|
||||
self.energyref=copy.deepcopy(self.energy)
|
||||
|
||||
def newData(self,twiss,energy):
|
||||
|
||||
@@ -56,7 +56,7 @@ class Sandbox:
|
||||
self.updateEnergySandbox(model['Energy'],machine['Energy'])
|
||||
|
||||
def updateEnergySandbox(self,model,machine):
|
||||
E0=1.e-6*model['energy']
|
||||
E0=model['energy']
|
||||
self.parent.SBE0Model.setText('%7.3f' % E0)
|
||||
E0 = None
|
||||
for key in machine.keys():
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>3</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_3">
|
||||
<attribute name="title">
|
||||
@@ -774,6 +774,19 @@
|
||||
<attribute name="title">
|
||||
<string>Relative Matching</string>
|
||||
</attribute>
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>301</width>
|
||||
<height>241</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>GroupBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user