Skip to content

Commit

Permalink
mock interface correction (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis authored Jun 13, 2023
1 parent f637e82 commit 5e7c033
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/dask_histogram/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@

class MockableDataFrameTreeReduction(DataFrameTreeReduction):
def mock(self):
return MockableDataFrameTreeReduction(
name=self.name,
name_input=self.name_input,
npartitions_input=1,
concat_func=self.concat_func,
tree_node_func=self.tree_node_func,
finalize_func=self.finalize_func,
split_every=self.split_every,
tree_node_name=self.tree_node_name,
return (
MockableDataFrameTreeReduction(
name=self.name,
name_input=self.name_input,
npartitions_input=1,
concat_func=self.concat_func,
tree_node_func=self.tree_node_func,
finalize_func=self.finalize_func,
split_every=self.split_every,
tree_node_name=self.tree_node_name,
),
None,
)

0 comments on commit 5e7c033

Please sign in to comment.