From 5855e2b72ff10f750f164af6e4340bc87ed1141f Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Wed, 11 Sep 2024 12:08:32 -0600 Subject: [PATCH] replace colon for windows compat --- src/operation/operation_model_interface.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/operation/operation_model_interface.jl b/src/operation/operation_model_interface.jl index e833b5e52..1250bcc1a 100644 --- a/src/operation/operation_model_interface.jl +++ b/src/operation/operation_model_interface.jl @@ -113,7 +113,8 @@ function solve_impl!(model::OperationModel) if !ispath(model_output_dir) mkdir(model_output_dir) end - model_export_path = joinpath(model_output_dir, "exported_$(model_name)_$(ts).json") + tss = replace!("$(ts)", ":" => "_") + model_export_path = joinpath(model_output_dir, "exported_$(model_name)_$(tss).json") serialize_optimization_model(container, model_export_path) end