From a732cbc4d5f884f9227b9baf7122c3af34597e9d Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Sat, 28 Oct 2023 15:10:45 +1300 Subject: [PATCH] Update to StochOptFormat v1.0 (#705) --- src/Experimental.jl | 2 +- test/Experimental.jl | 2 +- test/electric.sof.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Experimental.jl b/src/Experimental.jl index 4f4d6d9e3d..ef43846f98 100644 --- a/src/Experimental.jl +++ b/src/Experimental.jl @@ -178,7 +178,7 @@ function Base.write( _add_node_to_dict(node, node_name, nodes, subproblems, scenario_map) end sof = Dict{String,Any}( - "version" => Dict("major" => 0, "minor" => 3), + "version" => Dict("major" => 1, "minor" => 0), "root" => Dict{String,Any}( "name" => "$(model.root_node)", "state_variables" => Dict{String,Any}( diff --git a/test/Experimental.jl b/test/Experimental.jl index c8bf9391ca..253b8cf5e6 100644 --- a/test/Experimental.jl +++ b/test/Experimental.jl @@ -13,7 +13,7 @@ import JSON import JSONSchema Downloads.download( - "https://odow.github.io/StochOptFormat/versions/sof-0.3.schema.json", + "https://odow.github.io/StochOptFormat/schemas/sof-1.schema.json", "sof.schema.json", ) const SCHEMA = diff --git a/test/electric.sof.json b/test/electric.sof.json index 3176e7abee..013ebabfbd 100644 --- a/test/electric.sof.json +++ b/test/electric.sof.json @@ -1,7 +1,7 @@ { "author": "Oscar Dowson", - "name": "electric.sof.jsonn", - "version": {"major": 0, "minor": 3}, + "name": "electric.sof.json", + "version": {"major": 1, "minor": 0}, "root": { "state_variables": { "1": 0.0,