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 26, 2019
1 parent 06a29ad commit 84c1e56
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 84c1e56

Please sign in to comment.