Skip to content
Snippets Groups Projects
Commit 18729b12 authored by Andreas Freise's avatar Andreas Freise
Browse files

adding different RTL method

parent 3f34a411
Branches
No related tags found
No related merge requests found
...@@ -340,6 +340,26 @@ class AbstractMirrorComponent(Component): ...@@ -340,6 +340,26 @@ class AbstractMirrorComponent(Component):
if T is not None: self.T.value = T if T is not None: self.T.value = T
if L is not None: self.L.value = L if L is not None: self.L.value = L
def completeRTL(self, R=None, T=None, L=None):
setValues = sum(x is not None for x in [R,T,L])
if setValues == 3:
self.setRTL(R,T,L)
elif setValues < 2:
raise pkex.BasePyKatException("must set at least two out of three parameters (R, T, L)")
else:
if R is not None:
self.R.value = R
else:
self.R.value = 1-T-L
if T is not None:
self.T.value = T
else:
self.T.value = 1-R-L
if L is not None:
self.L.value = L
else:
self.L.value = 1-R-T
@property @property
def z(self): return self.__z def z(self): return self.__z
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment