Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent 293f306 commit 83603ed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hoomd/md/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ def _to_lowercase(self, letter):

def _preprocess_n_slabs(self, n_slabs):
if n_slabs < 0:
raise ValueError(f"The number of slabs is negative, \
n_slabs = {n_slabs}")
raise ValueError(
f"The number of slabs is negative, \
n_slabs = {n_slabs}"
)
return n_slabs

def _preprocess_max_slab(self, max_slab):
Expand All @@ -214,8 +216,10 @@ def _preprocess_min_slab(self, min_slab):
if min_slab <= -1 or min_slab > self.n_slabs:
raise ValueError(f"Invalid min_slab of {min_slab}")
if min_slab == self.max_slab:
raise ValueError(f"Min and max slab are equal. \
min_slab = max_slab = {min_slab}")
raise ValueError(
f"Min and max slab are equal. \
min_slab = max_slab = {min_slab}"
)
return min_slab

def _attach_hook(self):
Expand Down

0 comments on commit 83603ed

Please sign in to comment.