renamed beamline.Slits -> xoptics.slitcollection.SlitCollection

This commit is contained in:
2022-07-07 13:13:32 +02:00
parent 02c3dae297
commit 1ae025dfdd
2 changed files with 17 additions and 16 deletions
-16
View File
@@ -23,20 +23,4 @@ class BeamlineSwissfel:
print(linker.join(s))
class Slits:
def __init__(self, slits):
self.slits = slits
def __repr__(self):
o = []
for s in self.slits:
o.append(s.name)
tr = s.__repr__()
for line in tr.splitlines():
o.append(" " + line)
return "\n".join(o)
+17
View File
@@ -0,0 +1,17 @@
class SlitCollection:
def __init__(self, slits):
self.slits = slits
def __repr__(self):
o = []
for s in self.slits:
o.append(s.name)
tr = repr(s)
for line in tr.splitlines():
o.append(" " + line)
return "\n".join(o)