Optimized matching for the case of compression in the Switchyard

This commit is contained in:
2026-01-28 14:40:45 +01:00
parent 437d031b71
commit 9b09bb0914
7 changed files with 226 additions and 201 deletions

View File

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