Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions src/somd2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
# along with SOMD2. If not, see <http://www.gnu.org/licenses/>.
#####################################################################

# Disable Sire progress bars until we work out the best way to handle
# them for the SOMD2 runner, i.e. when running multiple dynamics objects
# in parallel.
from sire.base import ProgressBar as _ProgressBar

_ProgressBar.set_silent()
del _ProgressBar

from loguru import logger as _logger

from . import runner
Expand Down
5 changes: 5 additions & 0 deletions src/somd2/runner/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ def __init__(self, system, config):
# user's final choice of output directory is known.
self._config._setup_output_directory()

# Progress is reported through the logger, so silence Sire's progress
# bars. This also lets Sire run dynamics in longer blocks, since the
# blocks only exist to update the bar.
_sr.base.ProgressBar.set_silent()

if self._config.replica_exchange and self._config.perturbed_system is not None:
# Make sure the number of positions is correct.
num_atoms = self._system.num_atoms()
Expand Down