From a6c96826635e64e16ab9aa588d75826a5e84d6a5 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 2 Jan 2025 10:45:38 +0100 Subject: [PATCH] Fix for OteraEngine v1 --- utils/gen_python.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gen_python.jl b/utils/gen_python.jl index 3226d5ac7..d102dd223 100644 --- a/utils/gen_python.jl +++ b/utils/gen_python.jl @@ -48,7 +48,7 @@ model_template = Template( # Write schemas.py open(normpath(@__DIR__, "..", "python", "ribasim", "ribasim", "schemas.py"), "w") do io - init = Dict("models" => get_models()) + init = Dict(:models => get_models()) println(io, model_template(; init = init)) end @@ -75,6 +75,6 @@ connection_template = Template( # Write validation.py open(normpath(@__DIR__, "..", "python", "ribasim", "ribasim", "validation.py"), "w") do io - init = Dict("nodes" => get_connectivity()) + init = Dict(:nodes => get_connectivity()) println(io, connection_template(; init = init)) end