Skip to content

Commit d94f993

Browse files
authored
Merge pull request #77 from dwhswenson/silence-pymbar
Silence annoying pymbar warnings
2 parents 4a9f55c + 1a9c964 commit d94f993

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

paths_cli/cli.py

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

98+
# TODO: remove when openmmtools doesn't trigger these warnings
99+
silence_warnings = ['pymbar.mbar_solvers', 'pymbar.timeseries']
100+
for lname in silence_warnings:
101+
logger = logging.getLogger(lname)
102+
logger.setLevel(logging.CRITICAL)
103+
104+
98105
logger = logging.getLogger(__name__)
99106
logger.debug("About to run command") # TODO: maybe log invocation?
100107

0 commit comments

Comments
 (0)