Optimized matching for the case of compression in the Switchyard
This commit is contained in:
3
model.py
3
model.py
@@ -342,7 +342,6 @@ class Model:
|
||||
#k1 = val/brho
|
||||
|
||||
elements=self.getElements()
|
||||
print('Relative Magnet Strength')
|
||||
for ele in elements:
|
||||
if 'MQUA' in ele.Name.upper():
|
||||
bg = ele.Baugruppe
|
||||
@@ -355,7 +354,7 @@ class Model:
|
||||
k1max=k1brho[bg]/brho
|
||||
rat=np.abs(ele.k1/k1max)*100.
|
||||
label = '%s: %5.1f %%' % (ele.Name.replace('.','-'),rat)
|
||||
print(label)
|
||||
#print(label)
|
||||
listitem = QtWidgets.QListWidgetItem(label)
|
||||
color = QtGui.QColor(255,255,255) # white
|
||||
if rat>95:
|
||||
|
||||
Reference in New Issue
Block a user