Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error/Warning for incompatible terms with solvers #681

Merged
merged 11 commits into from
Apr 16, 2024
Merged

Conversation

selmanozleyen
Copy link
Collaborator

@selmanozleyen selmanozleyen commented Mar 31, 2024

Fixes #680.

After adding tests to assert that errors are thrown it should be done.

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 77.99%. Comparing base (3151da7) to head (a93c7a0).

❗ Current head a93c7a0 differs from pull request most recent head fc857f9. Consider uploading reports for the commit fc857f9 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #681      +/-   ##
==========================================
- Coverage   78.19%   77.99%   -0.20%     
==========================================
  Files          36       36              
  Lines        3806     3818      +12     
  Branches      706      712       +6     
==========================================
+ Hits         2976     2978       +2     
- Misses        524      529       +5     
- Partials      306      311       +5     
Files Coverage Δ
src/moscot/problems/generic/_generic.py 93.44% <0.00%> (-3.17%) ⬇️
src/moscot/base/problems/problem.py 75.94% <20.00%> (-1.56%) ⬇️

Copy link
Collaborator

@MUCDK MUCDK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -105,7 +104,7 @@ def test_solve_balanced(

tp = TranslationProblem(adata_src, adata_tgt)
tp = tp.prepare(batch_key="batch", src_attr=src_attr, tgt_attr=tgt_attr)
tp = tp.solve(epsilon=epsilon, alpha=alpha, rank=rank, **kwargs)
tp = tp.solve(epsilon=epsilon, rank=rank, **kwargs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please include a test where you explicitly have a fused term, too.

@MUCDK MUCDK merged commit 0ef9177 into main Apr 16, 2024
8 checks passed
@MUCDK MUCDK deleted the fix/setting_xy_for_gw branch April 16, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can run GW after setting xy
2 participants