Skip to content

Commit 962e233

Browse files
committed
Fix formatting, update NEWS.md and figures.
1 parent 8608e5d commit 962e233

6 files changed

Lines changed: 19 additions & 7 deletions

File tree

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release notes
22

3+
## Version 0.7.1 (2026-04-24)
4+
5+
### Bugfix
6+
7+
* Fix bug that resulted in arbitrary evaluated lat-lon coordinates for children of `Area`s due to the arbitrary default radius of 1.0 if not provided by the design `.yml` input files. The bug is resolved by first computing minimal distance between areas and letting the new radius be a third of this distance.
8+
* Fix issue when the transmissions/links is not properly defined (e.g., `from` or `to` objects not sharing resource).
9+
* Fix missing investments in transmission modes in the Investment overview.
10+
11+
### Enhancements
12+
13+
* Add more colors for resources aliases.
14+
315
## Version 0.7.0 (2026-04-17)
416

517
### Breaking changes

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "EnergyModelsGUI"
22
uuid = "737a7361-d3b7-40e9-b1ac-59bee4c5ea2d"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
authors = ["Jon Vegard Venås <JonVegard.Venas@sintef.no>", "Dimitri Pinel <Dimitri.Pinel@sintef.no>", "Magnus Askeland <Magnus.Askeland@sintef.no>", "Shweta Tiwari <Shweta.Tiwari@sintef.no>"]
55

66
[deps]

docs/src/figures/EMI_geography.png

-5.02 KB
Loading
-684 Bytes
Loading

src/setup_topology.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ function EnergySystemDesign(
4848
# Collect all (lon, lat) coordinates from elements that have them
4949
coords = [
5050
Point2f(element.lon, element.lat)
51-
for element in get_children(system)
51+
for element get_children(system)
5252
]
5353

5454
# Compute all pairwise distances
5555
min_dist = Inf
56-
for i in 1:length(coords)-1
57-
for j in i+1:length(coords)
56+
for i 1:(length(coords)-1)
57+
for j (i+1):length(coords)
5858
dist = l2_norm(coords[i] - coords[j])
5959
if dist < min_dist
6060
min_dist = dist

src/utils_GUI/GUI_utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,15 +534,15 @@ function get_investment_times(gui::GUI, max_inst::Float64)
534534
for investment_indicator investment_indicators # important not to use shorthand loop syntax here due to the break command (exiting both loops in that case)
535535
sym = Symbol(investment_indicator)
536536
if haskey(model, sym) &&
537-
!isempty(model[sym]) &&
538-
element axes(model[sym])[1]
537+
!isempty(model[sym]) &&
538+
element axes(model[sym])[1]
539539
val = value(model[sym][element, t])
540540
if val > get_var(gui, :tol) * max_inst
541541
capex::Float64 = 0.0
542542
for capex_field capex_fields
543543
capex_key = Symbol(capex_field[1])
544544
if haskey(model, capex_key) &&
545-
element axes(model[capex_key])[1]
545+
element axes(model[capex_key])[1]
546546
capex += value(model[capex_key][element, t])
547547
end
548548
end

0 commit comments

Comments
 (0)