Skip to content

Commit 2dc44d7

Browse files
committed
✅ tests pass
1 parent 07d088d commit 2dc44d7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/test_sampling.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,15 @@ def test_plot_pcp_in_sampler(self):
378378
assert isinstance(fig, go.Figure)
379379
assert len(fig.data) == 1
380380

381+
def last_val(x):
382+
return x.iloc[-1]
383+
384+
fig2 = sampler.sample.plot_pcp([("res", last_val)])
385+
386+
dims2 = fig2.data[0]["dimensions"]
387+
labels2 = [d["label"] for d in dims2]
388+
assert "last_val_res" in labels2
389+
381390
def test_lhs_sampler(self):
382391
# Dynamic
383392
sampler = LHSSampler(

0 commit comments

Comments
 (0)