-
Notifications
You must be signed in to change notification settings - Fork 18
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
Changche #33
Conversation
verse/scenario/scenario.py
Outdated
len(self.past_runs), | ||
self.past_runs, | ||
) | ||
self.simulate = self.simulator.simulate(root, self.sensor, time_horizon, time_step, max_height, self.map, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
verse/analysis/verifier.py
Outdated
# check height | ||
if node.height >= max_height-1: | ||
print("max depth reached") | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use continous instead of break, because we want to get everything at max_height instead of stop.
verse/analysis/simulator.py
Outdated
@@ -836,6 +848,23 @@ def get_transition_simulate_simple( | |||
transitions[agent_idx].append((agent_idx, dest, next_init, paths)) | |||
return all_asserts, dict(transitions), idx | |||
if len(satisfied_guard) > 0: | |||
# # if config.print_level >= 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this if it's not used.
verse/analysis/simulator.py
Outdated
print("max depth reached") | ||
continue | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use continue instead of break.
verse/analysis/simulator.py
Outdated
# Check height | ||
if node.height >= max_height-1: | ||
print("max depth reached") | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use continue instead of break.
verse/analysis/simulator.py
Outdated
@@ -231,7 +232,7 @@ def simulate_one( | |||
new_cache, paths_to_sim = to_simulate(old_node.agent, node.agent, cached_segments) | |||
|
|||
asserts, transitions, transition_idx = Simulator.get_transition_simulate( | |||
new_cache, paths_to_sim, node, consts.lane_map, consts.sensor, consts.agent_dict | |||
config, new_cache, paths_to_sim, node, consts.lane_map, consts.sensor, consts.agent_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a small thing. Do we need the full config or just the print level?
Add different level of print to Verse.