Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed May 8, 2024
1 parent 4b3241f commit 4567e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion biom/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ def partition(self, f, axis='sample', remove_empty=False,

else:
raise ValueError(f"Unable to handle a type of `{type(test)}` "
"with mapping")
"with mapping")

def part_f(i, m):
return mapping.get(i)
Expand Down
4 changes: 2 additions & 2 deletions biom/tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -4303,7 +4303,7 @@ def test_partition_remove_empty(self):
[4, 0, 0]]),
['O1', 'O2', 'O3'],
['S1', 'S2', 'S3'])
part_f = lambda i, m: i == 'S1'
part_f = lambda i, m: i == 'S1' # noqa
obs = dict(t.partition(part_f, remove_empty=True))
exp = {True: Table(np.array([[3, ], [4, ]]), ['O2', 'O3'], ['S1', ]),
False: Table(np.array([[1, 2]]), ['O1', ], ['S2', 'S3'])}
Expand All @@ -4315,7 +4315,7 @@ def test_partition_ignore_none(self):
[4, 0, 0]]),
['O1', 'O2', 'O3'],
['S1', 'S2', 'S3'])
part_f = lambda i, m: True if i == 'S1' else None
part_f = lambda i, m: True if i == 'S1' else None # noqa
obs = dict(t.partition(part_f, ignore_none=True))
exp = {True: Table(np.array([[0, ], [3, ], [4, ]]),
['O1', 'O2', 'O3'], ['S1', ])}
Expand Down

0 comments on commit 4567e56

Please sign in to comment.