From 1c8e74d6a6dfd10f09e8e9974b39fc074ded8d21 Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 15 Jul 2026 17:51:48 +0200 Subject: [PATCH] Building up the lattice --- containers.py | 2 +- protoliste.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containers.py b/containers.py index 526fa9a..2de68ab 100644 --- a/containers.py +++ b/containers.py @@ -184,7 +184,7 @@ class LineContainer: seq.append(ele) #print('Extend Cell',self.getResLength(), Last) if not self.hasBranchPoint: - print('Padding Line',self.Name, 'by:', self.getResLength()-Last) + #print('Padding Line',self.Name, 'by:', self.getResLength()-Last) app.writeDrift(self.getResLength() - Last) #app.writeLine(self,seq) # indicate the app that a sequence is done diff --git a/protoliste.py b/protoliste.py index db5bc52..cc7ee6e 100644 --- a/protoliste.py +++ b/protoliste.py @@ -226,7 +226,7 @@ class ProtoListe(ApplicationTemplate): return 0 def writeLine(self,ele,seq): - if not ele.Name in self.info.keys() and len(ele.Name) > 1: + if not ele.Name in self.info.keys() and len(ele.Name) > 4: domain = self.getDomain(ele.Name) align = 'Entrance' angh = np.arctan2(self.ev[0], self.ev[2]) * 180 / np.pi @@ -262,7 +262,7 @@ class ProtoListe(ApplicationTemplate): if 'MREF' in ele.Name: self.write((ele.Name, ele.LengthRes, 'Start', ele.Group, ele.Tag, ele.Baugruppe, 0, 0)) if ele.Group=='Start': - self.write((ele.Name, ele.LengthRes, 'Start', ele.Group, ele.Tag, 'Marker', 0, 0)) + self.writeLine(ele,[]) return def writeVacuum(self,ele): # all components, which have a well defined vacuum vessel.