Skip to content

Commit

Permalink
fix location -> _location throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Mar 9, 2021
1 parent b6c28d8 commit 93fc620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sourmash/sbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def search(self, query, *args, **kwargs):
# tree search should always/only return matches above threshold
assert similarity >= threshold

results.append((similarity, leaf.data, self.location))
results.append((similarity, leaf.data, self._location))

return results

Expand Down Expand Up @@ -436,7 +436,7 @@ def gather(self, query, *args, **kwargs):
containment = query.minhash.contained_by(leaf_mh, True)

assert containment >= threshold, "containment {} not below threshold {}".format(containment, threshold)
results.append((containment, leaf.data, self.location))
results.append((containment, leaf.data, self._location))

results.sort(key=lambda x: -x[0])

Expand Down Expand Up @@ -760,7 +760,7 @@ def load(cls, location, *, leaf_loader=None, storage=None, print_version_warning
storage = klass(**jnodes['storage']['args'])

obj = loader(jnodes, leaf_loader, dirname, storage, print_version_warning=print_version_warning, cache_size=cache_size)
obj.location = location
obj._location = location
return obj

@staticmethod
Expand Down

0 comments on commit 93fc620

Please sign in to comment.