Skip to content

Commit

Permalink
python fix dims_list parameter
Browse files Browse the repository at this point in the history
chengmingbo committed Oct 3, 2023
1 parent 1b18abd commit 48f131e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymojitoo/mojitoo/core.py
Original file line number Diff line number Diff line change
@@ -49,7 +49,8 @@ def mojitoo(adata: AnnData,

if len(reduction_name) < 2:
raise ValueError("At least 2 dimension names in reduction_list")

if dims_list is None:
dims_list = []
if len(dims_list) !=0 and len(dims_list) !=len(reduction_name):
raise ValueError("dims_list should be consistent with reduction_list")

0 comments on commit 48f131e

Please sign in to comment.