Fix logging of estimated time to completion with infinite number of iterations
@@ -1870,6 +1870,7 @@ class ReplicaExchange(object):
estimated_total_time = time_per_iteration * iteration_limit
estimated_finish_time = time.time() + estimated_time_remaining
logger.debug("Iteration took {:.3f}s.".format(iteration_time))
+ if estimated_time_remaining != float('inf'):
logger.debug("Estimated completion in {}, at {} (consuming total wall clock time {}).".format(
str(datetime.timedelta(seconds=estimated_time_remaining)), time.ctime(estimated_finish_time),
str(datetime.timedelta(seconds=estimated_total_time))))
