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

[MRG] migrate command (update old indexes) #494

Merged
merged 9 commits into from
Jun 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
corner cases, corner cases...
  • Loading branch information
luizirber committed Jun 21, 2018
commit 6b74f9af39e44601fadd9124b1988b43f2fea491
3 changes: 3 additions & 0 deletions sourmash/sbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ def fill_min_n_below(node, *args, **kwargs):
child_n = child.node.metadata.get('min_n_below', sys.maxsize)
min_n_below = min(child_n, min_n_below)

if min_n_below == 0:
min_n_below = 1

node.metadata['min_n_below'] = min_n_below
return original_min_n_below != min_n_below

Expand Down