max_min
hmmm…
Any idea what I’m doing wrong?
elif cnfg[“takeover_mode”] == “Value scaling”: new_val = self.value_scaling(cnfg, max_min)
UnboundLocalError
:
local variable ‘max_min’ referenced before assignment
admin Changed status to publish May 22, 2024
What listener are you using to run this code? i.e. if you’re doing it when the script initialised then it’s probably being ran before cnfg[“takeover_mode”] is created.
admin Changed status to publish May 22, 2024
Thank you both – it wasn’t at initialization, but I did change the controller template to none for scaling and I seem to not be getting the error.
admin Changed status to publish May 22, 2024
Sign up
User registration is currently not allowed.