Skip to content
New issue

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

Asserts are not checked when decision logic is empty in simulation #36

Open
lyg1597 opened this issue Apr 1, 2024 · 0 comments
Open
Assignees

Comments

@lyg1597
Copy link
Contributor

lyg1597 commented Apr 1, 2024

When no transitions are specified in the decision logic, the assertions are note checked. This happen because the guard and assertion checking are happened in the same function check_sim_transitions at simulator.py:728 and that line is executed only when there there's corresponding guards in agent_guard_dict. However, the agent guard dict only gets populated when there's guards in the decision logic (simulator.py: 705, simulator.py: 641). Therefore, when the decision logic is empty, the assertion checks are also not happen.

@lyg1597 lyg1597 self-assigned this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant