Skip to content

Errors arise when there are too few clusters #15

Description

@tonywong94

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions