Rework TomoDetector optic
Rework the TomoDetector
optic, to
- Make it ready for Daiquiri
- Structure it the way it is used at beamlines
Actual state
This looks a bit inconsistent. It would be good to rewrite that part of the code.
-
self.optic
is a string? -
self._optic
is an optic -
self.user_optic
is ? -
configured_optic
?
Also there is a use of connect(optic)
but no disconnect(optic)
, so probably there is problems at some places.
Planed yml config
# Define an optic which is usually linked and will not be changed
# else this can be undefined
optic: $myoptic
# Define a list of optics which can be used
mountable_optics: $list_of_optics
# Optionally allow to describe it this way
mountable_optics:
- $opt1
- $opt2
- $opt3
Planed changes in TomoDetector
This looks a bit inconsistent. It would be good to rewrite that part of the code.
-
self.optic
is the mounter optic, it can be changed by the user
Edited by Valentin Valls