Skip to content

Commit

Permalink
replace colon for windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 11, 2024
1 parent ed9ea74 commit 5855e2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/operation/operation_model_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5855e2b

Please sign in to comment.