Skip to content

Commit

Permalink
Remove redundant nested if block. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed May 1, 2024
1 parent fb2974b commit 089ddcb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/somd2/runner/_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,11 @@ def __init__(self, system, config):
# Only check for light atoms by the maxium end state mass if running
# in SOMD1 compatibility mode. Ghost atoms are considered light when
# adding bond constraints.
if self._config.somd1_compatibility:
self._config._extra_args["ghosts_are_light"] = True
self._config._extra_args["check_for_h_by_max_mass"] = True
self._config._extra_args["check_for_h_by_mass"] = False
self._config._extra_args["check_for_h_by_element"] = False
self._config._extra_args["check_for_h_by_ambertype"] = False
self._config._extra_args["ghosts_are_light"] = True
self._config._extra_args["check_for_h_by_max_mass"] = True
self._config._extra_args["check_for_h_by_mass"] = False
self._config._extra_args["check_for_h_by_element"] = False
self._config._extra_args["check_for_h_by_ambertype"] = False

# Check for a periodic space.
self._check_space()
Expand Down

0 comments on commit 089ddcb

Please sign in to comment.