Skip to content

Commit

Permalink
Rename tests to follow new folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Feb 26, 2024
1 parent 349160a commit 7a7ac9d
Show file tree
Hide file tree
Showing 211 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion example_systems/1_three_zones/settings/genx_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ OverwriteResults: 0 # Overwrite existing results in output folder or create a ne
PrintModel: 0 # Write the model formulation as an output; 0 = active; 1 = not active
NetworkExpansion: 1 # Transmission network expansionl; 0 = not active; 1 = active systemwide
Trans_Loss_Segments: 1 # Number of segments used in piecewise linear approximation of transmission losses; 1 = linear, >2 = piecewise quadratic
Reserves: 0 # Regulation (primary) and operating (secondary) reserves; 0 = not active, 1 = active systemwide
EnergyShareRequirement: 0 # Minimum qualifying renewables penetration; 0 = not active; 1 = active systemwide
CapacityReserveMargin: 0 # Number of capacity reserve margin constraints; 0 = not active; 1 = active systemwide
CO2Cap: 2 # CO2 emissions cap; 0 = not active (no CO2 emission limit); 1 = mass-based emission limit constraint; 2 = demand + rate-based emission limit constraint; 3 = generation + rate-based emission limit constraint
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ end
end

@testset "Piecewise Fuel" begin
include("test_piecewisefuel_CO2.jl")
include("test_piecewisefuel.jl")
end

@testset "VRE_STOR" begin
include("test_VREStor.jl")
include("test_VRE_storage.jl")
end

@testset "Electrolyzer" begin
Expand Down
2 changes: 1 addition & 1 deletion test/test_VREStor.jl → test/test_VRE_storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Test
include(joinpath(@__DIR__, "utilities.jl"))

obj_true = 92376.060123
test_path = "VREStor"
test_path = "VRE_storage"

# Define test inputs
genx_setup = Dict(
Expand Down
2 changes: 1 addition & 1 deletion test/test_compute_conflicts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module TestConflicts
using Test

include(joinpath(@__DIR__, "utilities.jl"))
test_path = joinpath(@__DIR__,"ComputeConflicts");
test_path = joinpath(@__DIR__,"compute_conflicts");

# Define test inputs
genx_setup = Dict{Any,Any}(
Expand Down
2 changes: 1 addition & 1 deletion test/test_electrolyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test
include(joinpath(@__DIR__, "utilities.jl"))

obj_true = 6946.9618
test_path = "Electrolyzer"
test_path = "electrolyzer"

# Define test inputs
genx_setup = Dict(
Expand Down
4 changes: 2 additions & 2 deletions test/test_load_resource_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function test_load_resources_data()
settings = GenX.default_settings()
merge!(settings, setup)

test_path = joinpath("LoadResourceData", "test_gen_non_colocated")
test_path = joinpath("load_resources", "test_gen_non_colocated")

# load dfGen and inputs_true to compare against
input_true_filenames = InputsTrue("generators_data.csv", "inputs_after_loadgen.jld2")
Expand Down Expand Up @@ -259,7 +259,7 @@ function test_load_VRE_STOR_data()
settings = GenX.default_settings()
merge!(settings, setup)

test_path = joinpath("LoadResourceData","test_gen_vre_stor")
test_path = joinpath("load_resources","test_gen_vre_stor")
input_true_filenames = InputsTrue("generators_data.csv", "inputs_after_loadgen.jld2")
dfGen, inputs_true = prepare_inputs_true(test_path, input_true_filenames, settings)

Expand Down
2 changes: 1 addition & 1 deletion test/test_multistage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test
include(joinpath(@__DIR__, "utilities.jl"))

obj_true = [79734.80032, 41630.03494, 27855.20631]
test_path = joinpath(@__DIR__, "MultiStage");
test_path = joinpath(@__DIR__, "multi_stage");

# Define test inputs
multistage_setup = Dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Test
include(joinpath(@__DIR__, "utilities.jl"))

obj_true = 2341.82308
test_path = "PiecewiseFuel_CO2"
test_path = "piecewise_fuel"

# Define test inputs
genx_setup = Dict(
Expand Down
2 changes: 1 addition & 1 deletion test/test_threezones.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test
include(joinpath(@__DIR__, "utilities.jl"))

obj_true = 6960.20855
test_path = "ThreeZones"
test_path = "three_zones"

# Define test inputs
genx_setup = Dict(
Expand Down
8 changes: 4 additions & 4 deletions test/test_time_domain_reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ console_out = stdout
redirect_stdout(devnull)

test_folder = settings_path = "TDR"
TDR_Results_test = joinpath(test_folder, "TDR_Results_test")
TDR_Results_test = joinpath(test_folder, "TDR_results_test")

# Folder with true clustering results for LTS and non-LTS versions
TDR_Results_true = if VERSION == v"1.6.7"
joinpath(test_folder, "TDR_Results_true_LTS")
joinpath(test_folder, "TDR_results_true_LTS")
else
joinpath(test_folder, "TDR_Results_true")
joinpath(test_folder, "TDR_results_true")
end

# Remove test folder if it exists
Expand All @@ -29,7 +29,7 @@ end
# Inputs for cluster_inputs function
genx_setup = Dict(
"TimeDomainReduction" => 1,
"TimeDomainReductionFolder" => "TDR_Results_test",
"TimeDomainReductionFolder" => "TDR_results_test",
"UCommit" => 2,
"CapacityReserveMargin" => 1,
"MinCapReq" => 1,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7a7ac9d

Please sign in to comment.