8000 Timing information at INFO logging level by ijpulidos · Pull Request #673 · choderalab/openmmtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Timing information at INFO logging level #673

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

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions openmmtools/multistate/multistatesampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,13 @@ def run(self, n_iterations=None):
partial_total_time = timer.partial('Run ReplicaExchange')
self._update_timing(iteration_time, partial_total_time, run_initial_iteration, iteration_limit)

# Show timing statistics if debug level is activated.
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Iteration took {:.3f}s.".format(self._timing_data["iteration_seconds"]))
if self._timing_data["estimated_time_remaining"] != float('inf'):
logger.debug("Estimated completion in {}, at {} (consuming total wall clock time {}).".format(
self._timing_data["estimated_time_remaining"],
self._timing_data["estimated_localtime_finish_date"],
self._timing_data["estimated_total_time"]))
# Log timing data as info level -- useful for users by default
logger.info("Iteration took {:.3f}s.".format(self._timing_data["iteration_seconds"]))
if self._timing_data["estimated_time_remaining"] != float('inf'):
logger.info("Estimated completion in {}, at {} (consuming total wall clock time {}).".format(
self._timing_data["estimated_time_remaining"],
self._timing_data["estimated_localtime_finish_date"],
self._timing_data["estimated_total_time"]))

# Perform sanity checks to see if we should terminate here.
self._check_nan_energy()
Expand Down
0