Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
python -m src.runwithout changing core computation logic.outputs/.method_summary.mdsuitable to paste into PPT/report and a console summary highlighting worst-case scenarios.Description
METHOD_SUMMARY_MDconstant insrc/config.pyand awrite_method_summarywriter insrc/irrbb/report.pythat emits the required methods/assumptions text (fields/diagnostics, decay model, 5Y cap, bucket defs, shock functions with parameters, EVE/NII formulas).build_decay_profileinsrc/nmd/repricing_profile.pyto acceptweightsandbalanceand to output the requested schema:bucket_label, t_start_years, t_end_years, t_mid_years, weight, survival, amount.src/utils/plotting.pyto produce:plot_decay.png(survival S(t) + bucket weight bar),plot_slotting.png(bucket_label vs amount bar), andplot_scenarios.png(grouped bars for ΔEVE and ΔNII(1Y)).src/run.pyto call the newbuild_decay_profile(..., balance=b0), persistdecay_profile,slotting_table,scenario_results, andmethod_summary.md, print a console scenario summary table with worst-case markers, and validate exactly 4 shock scenarios are produced; core engines for decay fitting, slotting, EVE and NII computations were not modified.Testing
python -m py_compile src/run.py src/irrbb/report.py src/nmd/repricing_profile.py src/utils/plotting.py src/config.pyand the compilation succeeded.python -m src.runbut it failed due to missingpandasin the execution environment.pip install -r requirements.txtto resolve dependencies but installation failed due to proxy/network restrictions (HTTP 403), so automated end-to-end file generation could not be verified in this environment.Codex Task