Skip to content

Commit

Permalink
Remove do_load
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jan 20, 2017
1 parent 73dd7ed commit 255ff6a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sourmash_lib/sbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,13 @@ def parent(self, pos):
if pos == 0:
return None
p = int(math.floor((pos - 1) / self.d))
self.nodes[p] = self.nodes[p].do_load()
return NodePos(p, self.nodes[p])

def children(self, pos):
return [self.child(pos, c) for c in range(self.d)]

def child(self, parent, pos):
cd = self.d * parent + pos + 1
if self.nodes[cd] is not None:
self.nodes[cd] = self.nodes[cd].do_load()
return NodePos(cd, self.nodes[cd])

def save(self, tag):
Expand All @@ -187,7 +184,6 @@ def save(self, tag):
structure[i] = None
continue

node = node.do_load()
basename = os.path.basename(node.name)
data = {
'filename': os.path.join('.sbt.' + basetag,
Expand Down

0 comments on commit 255ff6a

Please sign in to comment.