Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jul 8, 2019
1 parent a6ad959 commit 306c890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sourmash/sbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def new_node_pos(self, node):
next_internal_node = None
if self.next_node <= min_leaf:
for i in range(min_leaf):
if all((self._nodes.get(i, None) is None,
self._leaves.get(i, None) is None,
if all((i not in self._nodes,
i not in self._leaves,
i not in self._missing_nodes)):
next_internal_node = i
break
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sourmash.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def test_do_basic_compare(c):

cmp_outfile = c.output('cmp')
assert os.path.exists(cmp_outfile)
cmp_out = numpy.load(cmp_outfile.encode('utf-8'))
cmp_out = numpy.load(cmp_outfile)

sigs = []
for fn in testsigs:
Expand Down Expand Up @@ -727,7 +727,7 @@ def test_do_basic_compare_using_rna_arg(c):

cmp_outfile = c.output('cmp')
assert os.path.exists(cmp_outfile)
cmp_out = numpy.load(cmp_outfile.encode('utf-8'))
cmp_out = numpy.load(cmp_outfile)

sigs = []
for fn in testsigs:
Expand Down

0 comments on commit 306c890

Please sign in to comment.