Skip to content

Commit

Permalink
Fix #39 again
Browse files Browse the repository at this point in the history
  • Loading branch information
katosh committed Nov 19, 2024
1 parent d0adcf1 commit 185780e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/palantir/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@ def determine_multiscale_space(
n_eigs = np.argsort(vals[: (len(vals) - 1)] - vals[1:])[-1] + 1
if n_eigs < 3:
n_eigs = np.argsort(vals[: (len(vals) - 1)] - vals[1:])[-2] + 1
if n_eigs < 3:
# Fix for #39
n_eigs = 3

# Scale the data
use_eigs = list(range(1, n_eigs))
Expand Down

0 comments on commit 185780e

Please sign in to comment.