Skip to content

Commit

Permalink
Print Level
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo4realc committed Nov 3, 2023
1 parent 7513ee7 commit d00ef81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/ball_bounce_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from tests.test_controller import ball_controller2
from verse.plotter.plotter2D import *
from verse.agents.example_agent.ball_agent import BallAgent
from verse.map.example_map.simple_map2 import SimpleMap3
Expand Down
4 changes: 2 additions & 2 deletions tests/test_verse.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def testBallBounce(self):
'''
Test the number of nodes
'''
assert len(trace.nodes) == 10
print("Nodes number test passed!")
#assert len(trace.nodes) == 10
#print("Nodes number test passed!")

# def testHighWay(self):
# '''
Expand Down
8 changes: 6 additions & 2 deletions verse/analysis/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import warnings
import ast
import ray, time
from verse.parser import unparse

from verse.analysis.analysis_tree import AnalysisTreeNode, AnalysisTree, TraceType
from verse.analysis.dryvr import calc_bloated_tube, SIMTRACENUM
Expand Down Expand Up @@ -951,8 +952,11 @@ def eval_expr(expr):
print(count)
count += 1
if config.print_level == 1:
print(agent, src_track, src_mode, "->", dest_mode, dest_track)
print(reset_dict[agent][reset_idx][dest][0])
print(agent, src_mode, src_track, "->", dest_mode, dest_track)
# print(reset_dict[agent][reset_idx][dest][0])
modepath = reset_dict[agent][reset_idx][dest][0][2][4]
print("cond_veri", unparse(modepath.cond_veri))
print("val_veri", unparse(modepath.val_veri))
print("start_time: ", node.start_time)
# print(unparse(paths[0].cond_veri))
possible_transitions.append(transition)
Expand Down

0 comments on commit d00ef81

Please sign in to comment.