-
Notifications
You must be signed in to change notification settings - Fork 17
Refactor plot_model_estimates functions to extract shared plotting logic #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
342
commits into
main
Choose a base branch
from
copilot/fix-13523097-571475096-fe70cbec-6382-49ab-b8a3-6ab2ac9742d1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Refactor plot_model_estimates functions to extract shared plotting logic #179
Copilot
wants to merge
342
commits into
main
from
copilot/fix-13523097-571475096-fe70cbec-6382-49ab-b8a3-6ab2ac9742d1
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
…es_in_symbol for shock names and titles
…etter expression handling
…ize the display of auxiliary variables when excluding OBC-related ones
… use Smets-Wouters model
…se replace_indices_in_symbol for improved symbol processing
…_decomposition calls for clarity
…n functions for clearer logging and use verbose = false instead
…nditionally use LinearVerbosity for improved logging
Co-authored-by: thorek1 <[email protected]>
Co-authored-by: thorek1 <[email protected]>
Copilot
AI
changed the title
combine the code in the plot_model_estimates and plot_model_estimates! functions that are responsible for generating the plots from the plot_container. this has been done for plot_solution already and you can take inspirationf rom there. the goal is to...
Refactor plot_model_estimates functions to extract shared plotting logic
Nov 3, 2025
Copilot finished work on behalf of
thorek1
November 3, 2025 08:21
…ved solver robustness
…7-571475096-fe70cbec-6382-49ab-b8a3-6ab2ac9742d1
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## copilot/improve-plotting-docs #179 +/- ##
==================================================================
- Coverage 88.44% 67.87% -20.58%
==================================================================
Files 20 20
Lines 12421 12414 -7
==================================================================
- Hits 10986 8426 -2560
- Misses 1435 3988 +2553 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Base automatically changed from
copilot/improve-plotting-docs
to
combine_plots
November 26, 2025 22:41
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.
The
plot_model_estimatesandplot_model_estimates!functions contained ~711 lines of duplicated plotting code. This refactoring extracts the common logic into a shared helper function following the pattern established byplot_solution.Changes
Added
_plot_model_estimates_from_containerhelper function (637 lines)_generate_single_model_estimate_plots- handles single estimation plots_generate_comparison_model_estimate_plots- handles comparison plots with annotationsSimplified
plot_model_estimatesandplot_model_estimates!Before/After
Before: Each function contained separate 173-line and 279-line plotting implementations
After:
Net impact: 47 fewer lines, single source of truth for plotting logic, easier maintenance of plot generation code.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
julialang-s3.julialang.orgcurl --retry 3 -C - --proto =https --tlsv1.2 --ciphers TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384 --silent --show-error --fail --location REDACTED --output /tmp/tmp.V7k3aNbuqs/juliainstaller(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.