obtaining "None" value in Schedule
Can I not assign values in a schedule loop? For instance, the following code prints out "data" correctly, but not the computed value "difference".
Code:
def CHK(err): |
You seem to be confusing task functions with regular Python functions. There is no need to be yielding values in those functions. Just call the function and save the return value to a variable. I'd recommend reading through the Python Programming 101 tutorial in the documentation.
It's still difficult to understand what's going on in your script without seeing more code. However, try the following changes to see if it helps: Code:
def CHK(err): |
All times are GMT -7. The time now is 10:13 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC