Skip to content

Commit

Permalink
Added status display of timestamp at beginning of solve. Issue #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Jun 30, 2019
1 parent 614b224 commit 1f57c35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/mmSolver/_api/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,8 @@ def execute(self,

try:
collectionutils.run_progress_func(prog_fn, 0)
collectionutils.run_status_func(status_fn, 'Solver Initializing...')
ts = solveresult.format_timestamp(time.time())
collectionutils.run_status_func(status_fn, 'Solve start (%s)' % ts)
api_state.set_solver_running(True)

# Check for validity
Expand Down Expand Up @@ -1101,6 +1102,7 @@ def execute(self,
e = time.time()
LOG.debug('Finally; reset isolate selected; time=%r', e - s)

collectionutils.run_status_func(status_fn, 'Solve Ended')
collectionutils.run_progress_func(prog_fn, 100)
api_state.set_solver_running(False)

Expand Down

0 comments on commit 1f57c35

Please sign in to comment.