Commit 9d7be772 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

TransfocatorMockup: simplify initialization

parent eae90318
......@@ -488,13 +488,8 @@ class TransfocatorMockup(Transfocator):
def __init__(self, name, config_tree):
"""This will emulate a transfocator"""
temp_transf = Transfocator(name, config_tree)
lens = temp_transf.nb_lens
pinhole = temp_transf.nb_pinhole
self.__mockup_state = randint(0, 2 ** (lens + pinhole))
super().__init__(name, config_tree)
self.__mockup_state = randint(0, 2 ** (self.nb_lens + self.nb_pinhole))
def connect(self):
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment