Skip to content

Commit

Permalink
[qpsolvers#58] Improved code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ottapav committed Mar 1, 2023
1 parent 1746d55 commit 79dae47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def sparse_only(self) -> bool:
"""Test set is dense."""
return False


def __iter__(self) -> Iterator[Problem]:
"""Iterate on test set problems."""
for problem in super().__iter__():
Expand Down
2 changes: 1 addition & 1 deletion qpsolvers_benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def time_solve_problem(


def is_posdef(M):
'''Try to do Cholesky decomposition of a matrix. Only positive definite matrices will pass.'''
"""Try to do Cholesky decomposition of a matrix. Only positive definite matrices will pass."""
try:
np.linalg.cholesky(M)
except np.linalg.LinAlgError:
Expand Down

0 comments on commit 79dae47

Please sign in to comment.