Skip to content

Bump makie versions and optimize code#35

Merged
Zetison merged 17 commits intomainfrom
enhance/bump_makie_versions
Nov 19, 2025
Merged

Bump makie versions and optimize code#35
Zetison merged 17 commits intomainfrom
enhance/bump_makie_versions

Conversation

@Zetison
Copy link
Collaborator

@Zetison Zetison commented Nov 18, 2025

This PR finds workaround to update makie version which Fixes #24. The package can then be run with Julia version 1.12. A series of optimizations is also applied. Code structure has been improved by introducing the new types of PlotContainer and other improvements. Toggeling of GeoMakie is also now available which improves performance if the background map is not required.

@Zetison Zetison self-assigned this Nov 18, 2025
@Zetison Zetison requested a review from Copilot November 18, 2025 21:53
Copy link

Copilot AI left a comment

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 updates Makie package versions to support Julia 1.12 and introduces performance optimizations. Key changes include:

  • Replacing Dict{Symbol,Any} structures with the new parametric PlotContainer type for better type stability
  • Adding parent field to EnergySystemDesign to track hierarchy directly
  • Enabling optional GeoMakie toggling for improved performance when maps aren't needed
  • Refactoring color handling to use RGBA{Float32} consistently throughout

Reviewed Changes

Copilot reviewed 19 out of 22 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/utils.jl Updated function calls to use simplified API signatures
test/test_interactivity.jl Replaced direct indexing with get_component helper function
src/utils_gen/topo_utils.jl Removed unused toggle_inspector! function and updated parent access
src/utils_gen/structures_utils.jl Added parse_color utility and improved color handling with RGBA{Float32}
src/utils_gen/export_utils.jl Updated pretty_table API call from header to column_labels
src/utils_GUI/topo_axis_utils.jl Optimized connection drawing logic and moved label placement calculation
src/utils_GUI/results_axis_utils.jl Replaced Dict containers with typed PlotContainer structs
src/utils_GUI/event_functions.jl Simplified selection clearing with unified symbol-based API
src/utils_GUI/GUI_utils.jl Refactored selection color toggling and component picking logic
src/setup_topology.jl Added parent tracking during design construction
src/setup_GUI.jl Added GeoMakie toggle and data inspector configuration options
src/datastructures.jl Introduced PlotContainer type and consolidated getter functions
ext/EMGExt/EMGExt.jl Replaced custom area collection with EMG package function
docs/generate_images.jl Updated to use get_name accessor for plot containers
docs/Project.toml Added IntervalSets version constraint
README.md Removed Julia 1.12 incompatibility warning
NEWS.md Updated release notes with changes
.github/workflows/documentation.yml Updated Julia version from 1.11 to latest
.github/workflows/ci.yml Updated Julia version specifications

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Jon Vegard Venås and others added 6 commits November 18, 2025 23:17
Apply suggestions from Copilot review.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… examples (being activated when documentation CI is run).
@Zetison Zetison requested a review from dqpinel November 19, 2025 09:59
@Zetison Zetison merged commit 27238b6 into main Nov 19, 2025
3 checks passed
@Zetison Zetison deleted the enhance/bump_makie_versions branch November 19, 2025 12:26
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.

Breaking changes from Makie packages

3 participants