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

Function test_pipeline_summary_frame

python/tests/test_pipeline_api.py:79–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def test_pipeline_summary_frame():
80 timestamps, close, probabilities, sides, asset_prices, asset_names = _toy_pipeline_input()
81 out = openquant.pipeline.run_mid_frequency_pipeline(
82 timestamps=timestamps,
83 close=close,
84 model_probabilities=probabilities,
85 model_sides=sides,
86 asset_prices=asset_prices,
87 asset_names=asset_names,
88 cusum_threshold=0.0005,
89 )
90 summary = openquant.pipeline.summarize_pipeline(out)
91 assert isinstance(summary, pl.DataFrame)
92 assert summary.height == 1
93 assert "portfolio_sharpe" in summary.columns

Callers

nothing calls this directly

Calls 1

_toy_pipeline_inputFunction · 0.85

Tested by

no test coverage detected