Skip to content

Commit

Permalink
adding unit test for divide
Browse files Browse the repository at this point in the history
  • Loading branch information
renecotyfanboy committed Nov 6, 2023
1 parent edb43b6 commit 97d277e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@ def test_color_data_p1(self):
color_data = chain.color_data
assert color_data is not None
assert np.allclose(self.df["a"].to_numpy(), color_data)

def test_divide(self):

n_walkers = 10
result = Chain(samples=self.df, name=self.n, walkers=n_walkers).divide()
assert len(result) == n_walkers

0 comments on commit 97d277e

Please sign in to comment.