Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
should be good now
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Sep 4, 2024
1 parent e1b3eb3 commit d2c0fee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from scdataloader.utils import populate_my_ontology
from scprint.tasks import Denoiser
from scprint import scPrint
import pytest


def test_base():
Expand Down Expand Up @@ -54,8 +55,11 @@ def test_base():
predict_depth_mult=3,
dtype=torch.float32,
)
metrics, random_indices, genes, expr_pred = dn(
model=model,
adata=adata,
)
try:
metrics, random_indices, genes, expr_pred = dn(
model=model,
adata=adata,
)
except Exception as e:
pytest.fail(f"An exception occurred: {str(e)}")
assert metrics["reco2full"] - metrics["noisy2full"] > 0, "Model is not denoising"

0 comments on commit d2c0fee

Please sign in to comment.