Skip to content

Commit

Permalink
Merge pull request #286 from STOmics/multiAnalysis
Browse files Browse the repository at this point in the history
Change the core variable name to num_threads
  • Loading branch information
raozuming authored May 28, 2024
2 parents d2da126 + 29329e5 commit 85339d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stereo/algorithm/total_vi.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main(
rna_use_raw: bool = False,
protein_use_raw: bool = False,
use_gpu: Union[int, str, bool] = None,
core: int = None,
num_threads: int = None,
train_kwargs: Optional[dict] = {},
**kwags
):
Expand Down Expand Up @@ -135,7 +135,7 @@ def main(
})

total_vi = scvi.model.TOTALVI(mdata, **kwags)
scvi.settings.num_threads = core
scvi.settings.num_threads = num_threads
total_vi.train(use_gpu=use_gpu, **train_kwargs)

if not self._use_hvg:
Expand Down

0 comments on commit 85339d1

Please sign in to comment.