Removing loop_var in device.py
Closed this issue ยท 1 comments
GraysonBellamy commented
๐ Feature Request
loop_var variable seems to mirror the numbers in the "_Setpt" variables in "statistics". See if we can remove it to reduce variables and use existing dictionary instead.
๐ Motivation
Reduces number of variables and eliminates duplication.
๐ฐ Alternatives
It may be required but is not clear to me.
๐ Additional context
GraysonBellamy commented
Updated "loop_control_alg" and "loop_control_var" functions to refer to 'statistics' list instead of 'loop_vars', then removed 'loop_vars'. Tested both to verify.