Enhanced investment visualizations#53
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the topology/investment visualizations by (1) letting users adjust transparency for non-invested GUI objects via an “Alpha” slider, and (2) showing investments per individual TransmissionMode in both the investment overview and hover info.
Changes:
- Added an alpha slider to the GUI and propagated alpha into topology plots (nodes/boxes/icons/labels and connection markers/lines).
- Refactored processed investment data to support multiple
ProcInvDataentries (e.g., one perTransmissionMode) and updated hover/summary output accordingly. - Updated tests/docs and bumped version to
0.7.2.
Reviewed changes
Copilot reviewed 11 out of 14 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
src/datastructures.jl |
Refactors investment data storage (inv_data vector, invested observable), adds alpha/sliders fields and accessors. |
src/setup_GUI.jl |
Adds alpha keyword, stores :alpha observable, creates alpha slider and threads slider dict through GUI construction. |
src/utils_GUI/event_functions.jl |
Hooks alpha slider changes into vars[:alpha]. |
src/utils_GUI/GUI_utils.jl |
Updates investment summary formatting and assigns alpha behavior for non-invested objects. |
src/utils_GUI/topo_axis_utils.jl |
Applies alpha to topology plots and refactors connection arrow plotting to allow per-line alpha. |
ext/EMGExt/EMGExt.jl |
Adds TransmissionMode-aware ProcInvData and per-mode instantiate_inv_data/get_inv_objs for transmissions. |
test/utils.jl |
Imports get_slider for tests. |
test/test_interactivity.jl |
Adds alpha slider test coverage. |
docs/src/manual/simple-example.md |
Documents the new Simplified/Alpha controls. |
docs/generate_images.jl |
Uses alpha = 0.5 when generating docs images. |
NEWS.md |
Adds 0.7.2 release notes describing these enhancements. |
Project.toml |
Bumps package version to 0.7.2. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
dqpinel
approved these changes
May 21, 2026
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.
This PR enables the user to adjust the alpha value of EMGUI-objects not invested in (as illustrated by the changes in
docs/src/figures/EMI_geography_Oslo.png). It also provides the adjustment to show the investments of individualTransmissionModes in the investment overview and in the information box appearing when hovering over an object.