MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _validate_equal_length

Function _validate_equal_length

python/openquant/adapters.py:9–11  ·  view source on GitHub ↗
(name_a: str, a: Sequence[object], name_b: str, b: Sequence[object])

Source from the content-addressed store, hash-verified

7
8
9def _validate_equal_length(name_a: str, a: Sequence[object], name_b: str, b: Sequence[object]) -> None:
10 if len(a) != len(b):
11 raise ValueError(f"{name_a}/{name_b} length mismatch: {len(a)} vs {len(b)}")
12
13
14def to_polars_signal_frame(

Callers 6

to_polars_signal_frameFunction · 0.85
to_polars_event_frameFunction · 0.85
to_polars_weights_frameFunction · 0.85
to_polars_frontier_frameFunction · 0.85
to_polars_backtest_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected