Skip to content

Fix misc minor bugs in roll finder, HDF5, pipeline, adjustments, and metrics#326

Open
pandashark wants to merge 1 commit intostefan-jansen:mainfrom
pandashark:bugfix/misc-minor-fixes
Open

Fix misc minor bugs in roll finder, HDF5, pipeline, adjustments, and metrics#326
pandashark wants to merge 1 commit intostefan-jansen:mainfrom
pandashark:bugfix/misc-minor-fixes

Conversation

@pandashark
Copy link

Summary

Closes #322

  • Replace sessions.freq with tc.day in RollFinder.get_rolls
  • Fix compute_asset_lifetimes for all-null assets (set start > end)
  • Apply mask to NumericalExpression._compute output
  • Preserve input ordering in _merge_expressions with dict.fromkeys
  • Add SQL table name whitelist validation in SQLiteAdjustmentReader
  • Filter max_leverage to reporting period in _ClassicRiskMetrics

Test plan

  • All existing tests pass
  • flake8 passes on modified files
  • Verify pipeline expressions with masked assets produce correct missing values
  • Verify risk metrics report per-period max leverage, not global

…s, and metrics

- Replace sessions.freq with tc.day in roll_finder.py
- Fix compute_asset_lifetimes for all-null assets in hdf5_daily_bars.py
- Apply mask to NumericalExpression._compute output
- Preserve input ordering in _merge_expressions with dict.fromkeys
- Add SQL table name whitelist validation in adjustments.py
- Filter max_leverage to reporting period in _ClassicRiskMetrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misc minor bugs: roll finder, HDF5 lifetimes, pipeline mask, SQL validation, leverage metrics

1 participant