Skip to content

Commit

Permalink
fix initializer_kwargs test
Browse files Browse the repository at this point in the history
  • Loading branch information
selmanozleyen committed Dec 10, 2024
1 parent 39e6c03 commit 3fd0fac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/problems/generic/test_sinkhorn_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ def test_pass_arguments(self, adata_time: AnnData, args_to_check: Mapping[str, A
solver = problem[(0, 1)].solver.solver
args = sinkhorn_solver_args if args_to_check["rank"] == -1 else lr_sinkhorn_solver_args
for arg, val in args.items():
assert hasattr(solver, val), val
el = getattr(solver, val)[0] if isinstance(getattr(solver, val), tuple) else getattr(solver, val)
assert el == args_to_check[arg], arg
if val != "initializer_kwargs":
assert hasattr(solver, val), val
el = getattr(solver, val)[0] if isinstance(getattr(solver, val), tuple) else getattr(solver, val)
assert el == args_to_check[arg], arg

lin_prob = problem[(0, 1)]._solver._problem
for arg, val in lin_prob_args.items():
Expand Down

0 comments on commit 3fd0fac

Please sign in to comment.