Skip to content

Commit

Permalink
More detailed assert statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Jul 4, 2024
1 parent e5038f5 commit d9a2394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="sgw_tools",
version="2.4.1",
version="2.4.2",
author="Mark Hale",
license="MIT",
description="Spectral graph wavelet tools",
Expand Down
2 changes: 1 addition & 1 deletion sgw_tools/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def compute_fourier_basis(self, recompute=False, spectrum_only=False):

self._e[np.isclose(self._e, 0)] = 0
e_min = np.min(self._e)
assert e_min == self._e[0], "First eigenvalue is not the smallest"
assert e_min == self._e[0], "First eigenvalue is not the smallest: {}".format(self._e)
assert e_min >= 0, "Smallest eigenvalue is negative {}".format(e_min)
e_nz = self._e[np.where(self._e>0)]
if len(e_nz) > 0:
Expand Down

0 comments on commit d9a2394

Please sign in to comment.