Skip to content

How to set a tuple in the scanner? #36

Closed Answered by Python-simulation
Python-simulation asked this question in Q&A
Discussion options

You must be logged in to vote

For now, I've implemented a manual tuple setting on the scanner with an initial value taken from the last measured value (I've added the option to core.element.Variable directly -> could be used later for any type of variable).

Another "problem" occurred to me with the tuple. If a driver is used without the GUI, tuple is a complicated variable to use to set a base value. You can't do set_value('var') but have to do something like set_value(['var', 'test'], 0)).
We could consider having two possible driver behaviors depending on the type of arg to perform the first operation instead of the tuple operation. But this would have to be done at Driver level.
Edit: would lead to reading issue no…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Python-simulation
Comment options

Answer selected by Python-simulation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
1 participant