Skip to content

Commit

Permalink
Add update_internal param to add_node, working on impl
Browse files Browse the repository at this point in the history
refactor SBT to keep internal nodes and leaves in separate dicts
make nodes and missing nodes 'private'
fill_up implemented and working
Disable updates during indexing
small cleanups
  • Loading branch information
luizirber committed Dec 18, 2018
1 parent dbb323f commit b4ef3f9
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 121 deletions.
2 changes: 1 addition & 1 deletion sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def index(args):
scaleds.add(ss.minhash.scaled)

leaf = SigLeaf(ss.md5sum(), ss)
tree.add_node(leaf)
tree.add_node(leaf, update_internal=False)
n += 1

if not ss:
Expand Down
Loading

0 comments on commit b4ef3f9

Please sign in to comment.