From 9752776dd9776047bf13d76298f26dbe453a511a Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 18 Aug 2026 15:10:30 +0200 Subject: [PATCH] Updating the protolist generator to be more synchronized with th eonline model --- protoliste.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/protoliste.py b/protoliste.py index df033fa..2858b68 100644 --- a/protoliste.py +++ b/protoliste.py @@ -300,12 +300,6 @@ class ProtoListe(ApplicationTemplate): self.p2[1:4] = p2.copy() self.p2[0] = self.p1[0] + L - if np.abs(tilt) > 0.001: - print(ele.Prefix,ele.Name,tilt,ele.design_angle,angletmp) - print(self.ev1) - print(self.ev2) - - channels = 1 if 'PSChannels' in ele.__dict__: channels = ele['PSChannels'] @@ -318,7 +312,6 @@ class ProtoListe(ApplicationTemplate): # now do the true transport: ele.angle = angletmp - print(ele.Prefix,ele.Name,ele.angle) if np.abs(ele.angle) < 1e-5: self.p1 = self.p1 + (ele.getResLength() - ele.sRef) * self.ev1 self.ev2 = self.ev1.copy() # using initial vector since there is no net deflection @@ -327,11 +320,7 @@ class ProtoListe(ApplicationTemplate): self.p1 = self.p2 + (ele.getResLength() - ele.sRef - ele.getLength()) * self.ev2 self.ev1 = self.ev2.copy() # get new pointing - if np.abs(tilt) > 0.001: - print('Nocheinmal - following the arc') - print(ele.Prefix,ele.Name,tilt,ele.design_angle) - print(self.ev1) - print(self.ev2) +