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

Errors arise when there are too few clusters #15

Open
tonywong94 opened this issue Sep 25, 2022 · 0 comments
Open

Errors arise when there are too few clusters #15

tonywong94 opened this issue Sep 25, 2022 · 0 comments

Comments

@tonywong94
Copy link

The 'if kg>1' clause that begins on line 792 of scimes.py generates errors if the conditional evaluates to False. Namely,

  1. line 834 has variable 'all_leaves_idx' which is undefined, should probably be 'all_leav_idx':
NameError: name 'all_leaves_idx' is not defined
  1. line 836 passes 'mul_leav_idx' to 'clust_cleaning', producing this kind of error:
--> 327 clust_leaves_idx = np.asarray(allleavidx)[clust_idx]
IndexError: boolean index did not match indexed array along dimension 0; dimension is 27 but corresponding boolean dimension is 31
  1. line 866 has parameter 'n_components=ks' which is not defined for this case:
UnboundLocalError: local variable 'ks' referenced before assignment
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

No branches or pull requests

1 participant