Skip to content

Graceful fail for summation model in backtest - #546

Merged
felix-e-h-p merged 6 commits into
mainfrom
backtest_graceful_fail_mode
Sep 17, 2026
Merged

felix-e-h-p merged 6 commits into
mainfrom
backtest_graceful_fail_mode

Conversation

@felix-e-h-p

@felix-e-h-p felix-e-h-p commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Relating to not using a summation model and no national i.e. 0 location in target - so specific regional backtests for NL. Graceful fail mode. Please correct me if wrong @bsharma58

@felix-e-h-p
felix-e-h-p requested a review from Sukh-P September 14, 2026 14:05
Added a noqa comment to suppress a linting warning for the exception handling.
Added use_summation_model parameter to BacktestStreamedDataset and updated sample generation logic to conditionally include national capacity.
Add initialization documentation for BacktestStreamedDataset.
Comment thread scripts/backtest.py Outdated
@Sukh-P

Sukh-P commented Sep 16, 2026

Copy link
Copy Markdown
Member

I think this looks good @felix-e-h-p, wondering if it would be easy enough to run it without a summation model defined to check it's working properly

@Sukh-P Sukh-P left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but as mentioned would be great if this could be ran (with/without summation) just to double check it's all good since we lack tests for scripts

@felix-e-h-p

Copy link
Copy Markdown
Contributor Author

Ran on NL model (pvnet 6815348c), with summation (f2b9b22e) and without. Both runs fine.

@felix-e-h-p
felix-e-h-p merged commit e984b20 into main Sep 17, 2026
5 checks passed
@felix-e-h-p
felix-e-h-p deleted the backtest_graceful_fail_mode branch September 17, 2026 10:04
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.

2 participants