Skip to content

Commit 3867c5b

Browse files
committed
Silence annoying pymbar warnings
1 parent b05951c commit 3867c5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

paths_cli/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ def main(log):
9494
logging.config.fileConfig(log, disable_existing_loggers=False)
9595
# TODO: if log not given, check for logging.conf in .openpathsampling/
9696

97+
silence_warnings = ['pymbar.mbar_solvers', 'pymbar.timeseries']
98+
for lname in silence_warnings:
99+
logger = logging.getLogger(lname)
100+
logger.setLevel(logging.CRITICAL)
101+
102+
97103
logger = logging.getLogger(__name__)
98104
logger.debug("About to run command") # TODO: maybe log invocation?
99105

0 commit comments

Comments
 (0)