()
| 90 | ) |
| 91 | assert comparison["chart"] == "grouped_bar" |
| 92 | |
| 93 | cluster = openquant.viz.prepare_cluster_payload(["n1", "n2"], [None, "n1"], height=[0.0, 1.2]) |
| 94 | assert cluster["chart"] == "tree" |
| 95 | assert cluster["height"] == [0.0, 1.2] |
| 96 | |
| 97 | |
| 98 | def test_adapter_shape_validation(): |
| 99 | with pytest.raises(ValueError): |
| 100 | openquant.adapters.to_polars_signal_frame(["2024-01-01 09:30:00"], [0.1, 0.2]) |
| 101 | with pytest.raises(ValueError): |
| 102 | openquant.adapters.to_polars_indicator_matrix([[1, 0], [1]], bar_index=[0, 1]) |
nothing calls this directly
no outgoing calls
no test coverage detected