Skip to content

Commit

Permalink
ensure secondary solve follows user selection
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuailevy committed Feb 10, 2025
1 parent c9a58d6 commit 7e47b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freyja/sample_deconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def solve_demixing_problem(df_barcodes, mix, depths, eps, adapt,
constraints = [sum(x) == 1, x >= 0]
prob = cp.Problem(cp.Minimize(cost), constraints)
try:
prob.solve(verbose=False, solver=cp.ECOS)
prob.solve(verbose=False, solver=solver_)
except cp.error.SolverError:
raise ValueError('Solver error encountered, most'
'likely due to insufficient sequencing depth.'
Expand Down

0 comments on commit 7e47b37

Please sign in to comment.