Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Jan 22, 2025
1 parent e6ac188 commit 3b30ef8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/conda-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
echo "Creating Conda Environment from environment.yml"
conda env create -f environment.yml
conda activate tdc-conda-env
python run_tests.py tdc.test.test_model_server.TestModelServer.testscVI
python run_tests.py
yapf --style=google -r -d tdc
conda deactivate
14 changes: 12 additions & 2 deletions tdc/test/test_model_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ def setUp(self):
print(os.getcwd())
self.resource = cellxgene_census.CensusResource()

def testFake(self):
print("success")
def testscVI(self):
from tdc.multi_pred.anndata_dataset import DataLoader
from tdc import tdc_hf_interface
# run scvi test
adata = DataLoader("cellxgene_sample_small",
"./data",
dataset_names=["cellxgene_sample_small"],
no_convert=True).adata
# run scVI on a single sample
scvi = tdc_hf_interface("scVI")
model = scvi.load() # this line can cause segmentation fault
pass

def testscGPT(self):
from tdc.multi_pred.anndata_dataset import DataLoader
Expand Down

0 comments on commit 3b30ef8

Please sign in to comment.