From 8e4324d204a9ac47be45ff389f184df6edfaa6f0 Mon Sep 17 00:00:00 2001 From: Julian Straus Date: Mon, 11 Mar 2024 08:30:05 +0100 Subject: [PATCH 1/2] Changed folder structure --- NEWS.md | 1 + src/{structures_area.jl => structures/area.jl} | 0 src/{structures_mode.jl => structures/mode.jl} | 0 src/{structures_transmission.jl => structures/transmission.jl} | 0 4 files changed, 1 insertion(+) rename src/{structures_area.jl => structures/area.jl} (100%) rename src/{structures_mode.jl => structures/mode.jl} (100%) rename src/{structures_transmission.jl => structures/transmission.jl} (100%) diff --git a/NEWS.md b/NEWS.md index cb13ead..b8d710c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ ## Unversioned * Fixed a bug regarding accessing the field `limit` of a `LimitedExchangeArea`. +* Moved all files declaring structures to a separate folder for improved readability. ## Version 0.8.1 (2024-03-04) diff --git a/src/structures_area.jl b/src/structures/area.jl similarity index 100% rename from src/structures_area.jl rename to src/structures/area.jl diff --git a/src/structures_mode.jl b/src/structures/mode.jl similarity index 100% rename from src/structures_mode.jl rename to src/structures/mode.jl diff --git a/src/structures_transmission.jl b/src/structures/transmission.jl similarity index 100% rename from src/structures_transmission.jl rename to src/structures/transmission.jl From 6755c4f21be104648fb8b481a55549aa3d4e2e6c Mon Sep 17 00:00:00 2001 From: Julian Straus Date: Mon, 11 Mar 2024 09:57:57 +0100 Subject: [PATCH 2/2] Fixed introduced bug in main module --- src/EnergyModelsGeography.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EnergyModelsGeography.jl b/src/EnergyModelsGeography.jl index 97999c8..7dd3f8c 100644 --- a/src/EnergyModelsGeography.jl +++ b/src/EnergyModelsGeography.jl @@ -11,9 +11,9 @@ using JuMP using EnergyModelsBase; const EMB = EnergyModelsBase using TimeStruct -include("structures_area.jl") -include("structures_mode.jl") -include("structures_transmission.jl") +include(joinpath("structures", "area.jl")) +include(joinpath("structures", "mode.jl")) +include(joinpath("structures", "transmission.jl")) include("checks.jl") include("model.jl") include("constraint_functions.jl")