Skip to content

Commit

Permalink
Fix pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Gresch committed Feb 17, 2020
1 parent 7c85a38 commit fa27600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kdotp_symmetry/_linalg.py
Expand Up @@ -27,10 +27,10 @@ def zassenhaus(basis_a, basis_b):
# Set up the Zassenhaus matrix from the given bases.
A = sp.Matrix(basis_a)
B = sp.Matrix(basis_b)
dim = A.shape[1] # pylint: disable=unsubscriptable-object
if B.shape[1] != dim: # pylint: disable=unsubscriptable-object
dim = A.shape[1]
if B.shape[1] != dim:
raise ValueError('Inconsistent dimensions of the two bases given.')
zassenhaus_mat = A.row_join(A).col_join(B.row_join(sp.zeros(*B.shape))) # pylint: disable=not-an-iterable
zassenhaus_mat = A.row_join(A).col_join(B.row_join(sp.zeros(*B.shape)))
mat, pivot = zassenhaus_mat.rref()

# idx is the row index of the first row belonging to the intersection basis
Expand Down
3 changes: 1 addition & 2 deletions tests/conftest.py
Expand Up @@ -28,8 +28,7 @@ def inner(compare_fct, data, tag=None):
if val is None:
request.config.cache.set(full_name, data_str)
raise ValueError('Reference data does not exist.')
else:
assert compare_fct(val, data)
assert compare_fct(val, data)

return inner

Expand Down

0 comments on commit fa27600

Please sign in to comment.