Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David W.H. Swenson <dwhs@hyperblazer.net>
  • Loading branch information
sroet and dwhswenson committed Oct 13, 2020
1 parent 2bc9cde commit 4f1c983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contact_map/contact_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def _check_compatibility(self, other, return_failed=False,
self_val = getattr(self, attr)
other_val = getattr(other, attr)
if self_val != other_val:
failed_attr.update({attr: (self_val, other_val)})
failed_attr[attr] = (self_val, other_val)
err_msg += " {attr}: {self} != {other}\n".format(
attr=attr, self=str(self_val), other=str(other_val)
)
Expand Down
2 changes: 1 addition & 1 deletion contact_map/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def check_atoms_ok(top0, top1, atoms):
try:
all_atoms_ok = all(genatom)
except IndexError:
# If a given topology does not containthe required indices.
# If a given topology does not contain the required indices.
all_atoms_ok = False
return all_atoms_ok

Expand Down

0 comments on commit 4f1c983

Please sign in to comment.