Skip to content

Enhanced investment visualizations#53

Merged
JulStraus merged 5 commits into
mainfrom
enhance/investment_visuals
May 21, 2026
Merged

Enhanced investment visualizations#53
JulStraus merged 5 commits into
mainfrom
enhance/investment_visuals

Conversation

@Zetison

@Zetison Zetison commented May 20, 2026

Copy link
Copy Markdown
Collaborator

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 individual TransmissionModes in the investment overview and in the information box appearing when hovering over an object.

@Zetison Zetison requested a review from Copilot May 20, 2026 15:09
@Zetison Zetison self-assigned this May 20, 2026
@Zetison Zetison added the enhancement New feature or request label May 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 ProcInvData entries (e.g., one per TransmissionMode) 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.

Comment thread src/datastructures.jl
Comment thread src/utils_GUI/event_functions.jl Outdated
Comment thread src/datastructures.jl Outdated
Comment thread src/datastructures.jl Outdated
Comment thread src/setup_GUI.jl Outdated
Comment thread src/setup_GUI.jl Outdated
Comment thread src/utils_GUI/topo_axis_utils.jl
Zetison and others added 2 commits May 20, 2026 19:40
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 14 changed files in this pull request and generated 6 comments.

Comment thread src/datastructures.jl Outdated
Comment thread src/datastructures.jl Outdated
Comment thread src/datastructures.jl
Comment thread src/utils_GUI/topo_axis_utils.jl
Comment thread src/utils_GUI/GUI_utils.jl
Comment thread ext/EMGExt/EMGExt.jl Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 14 changed files in this pull request and generated 3 comments.

Comment thread src/datastructures.jl
Comment thread src/utils_GUI/GUI_utils.jl
Comment thread docs/src/manual/simple-example.md Outdated
@Zetison Zetison requested a review from dqpinel May 20, 2026 19:36
@JulStraus JulStraus merged commit 79138c4 into main May 21, 2026
3 checks passed
@JulStraus JulStraus deleted the enhance/investment_visuals branch May 21, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants