Skip to content

Commit

Permalink
lessequal instead of less
Browse files Browse the repository at this point in the history
  • Loading branch information
Kemal Bidzhiev authored and Kemal Bidzhiev committed Feb 12, 2025
1 parent 10a8bfb commit 542bb90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions emu_mps/optimatrix/optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,8 @@ def minimize_bandwidth(input_matrix: np.ndarray, samples: int = 100) -> list[int
opt_permutations_and_opt_bandwidth,
key=lambda perm_and_bandwidth: perm_and_bandwidth[1],
)
initial_bw = matrix_bandwidth(input_matrix)
msg = f"Matrix is not optimised {initial_bw} -> {best_bandwidth}"
assert best_bandwidth <= initial_bw, msg

assert best_bandwidth <= matrix_bandwidth(input_matrix), "Matrix is not optimised"
return best_perm


Expand Down

0 comments on commit 542bb90

Please sign in to comment.