Building up the lattice

This commit is contained in:
reiche committed 2026-07-15 17:51:48 +02:00
1 parent c57c938024
commit 1c8e74d6a6
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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.