Allow v0.3 to read v0.2 instance files

This commit is contained in:
2022-07-12 11:46:27 -05:00
parent 678e6aa2f5
commit 6e30645084
24 changed files with 83 additions and 27 deletions

View File

@@ -4,12 +4,9 @@
using UnitCommitment
basedir = @__DIR__
@testset "read_egret_solution" begin
solution = UnitCommitment.read_egret_solution(
"$basedir/../fixtures/egret_output.json.gz",
)
solution =
UnitCommitment.read_egret_solution("$FIXTURES/egret_output.json.gz")
for attr in ["Is on", "Production (MW)", "Production cost (\$)"]
@test attr in keys(solution)
@test "115_STEAM_1" in keys(solution[attr])