Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
9d7be772
Commit
9d7be772
authored
May 20, 2021
by
Wout De Nolf
Browse files
TransfocatorMockup: simplify initialization
parent
eae90318
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/controllers/transfocator.py
View file @
9d7be772
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment