Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Nov 5, 2024
1 parent b0dba0a commit 4475fb9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions freud/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ def compute(self, orientations):
"In freud versions >=3.0.0, Nematic.compute() takes "
"3d orientation vectors instead of 4d quaternions."
)
raise ValueError(
msg
)
raise ValueError(msg)
orientations = freud.util._convert_array(orientations, shape=(None, 3))

if len(np.where(~orientations.any(axis=1))[0]) != 0:
Expand Down Expand Up @@ -977,9 +975,7 @@ def compute(self, system=None, voronoi=None):
voronoi.compute(system)
elif not hasattr(voronoi, "nlist"):
msg = "Must call compute on Voronoi object prior to computing coordination."
raise RuntimeError(
msg
)
raise RuntimeError(msg)
cpp_voronoi = voronoi
self._cpp_obj.compute(cpp_voronoi._cpp_obj)
return self
Expand Down

0 comments on commit 4475fb9

Please sign in to comment.