Skip to content

Commit

Permalink
Solver UI - Print number of frames solved in status line.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Feb 5, 2023
1 parent d205c87 commit c90ae24
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/mmSolver/tools/solver/lib/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ def log_solve_results(
status_str += stamp + ' | '
long_status_str += stamp + ' | '

frame_list = mmapi.merge_frame_list(solres_list)
num_frames = len(frame_list)

# Get Solver success.
success = True
for solres in solres_list:
Expand All @@ -279,11 +282,11 @@ def log_solve_results(
success = False
break
if success is True:
status_str += 'Solved | '
long_status_str += 'Solved | '
status_str += 'Solved %s frames | ' % num_frames
long_status_str += 'Solved %s frames | ' % num_frames
else:
status_str += 'Failed | '
long_status_str += 'Failed | '
status_str += 'Failed %s frames | ' % num_frames
long_status_str += 'Failed %s frames | ' % num_frames

frame_error_list = mmapi.merge_frame_error_list(solres_list)
if log and (log.level > logging.DEBUG):
Expand Down

0 comments on commit c90ae24

Please sign in to comment.