We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A state that is never used won't have recorded data.
class Cashier(UP.Actor): items_scanned = UP.State(default=0, recording=True) with UP.EnvironmentContext(): cash = Cashier(name="cashier") print("items_scanned" in cash.__dict__) >>> False
Either make the state's instantiation non-lazy or check for this condition in the data gathering code.
Also, the data gathering uses break instead of continue when a location state is reached. Correct that.
break
continue
The text was updated successfully, but these errors were encountered:
JamesArruda
Successfully merging a pull request may close this issue.
A state that is never used won't have recorded data.
Either make the state's instantiation non-lazy or check for this condition in the data gathering code.
Also, the data gathering uses
break
instead ofcontinue
when a location state is reached. Correct that.The text was updated successfully, but these errors were encountered: