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 Jan 15, 2019
1 parent f6ed614 commit 210f8fc
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 @@ -753,7 +753,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 210f8fc

Please sign in to comment.