From 3bb13289bc872749e2cf62af214113c52bdf2cfa Mon Sep 17 00:00:00 2001 From: Paulo Meira <10246101+PMeira@users.noreply.github.com> Date: Wed, 1 Nov 2023 22:02:14 -0300 Subject: [PATCH] Examples/tests: add quotes in most compile/redirect commands. Closes https://github.com/dss-extensions/OpenDSSDirect.jl/issues/94 --- examples/8760.jl | 2 +- examples/8760_pmap.jl | 2 +- examples/custom_8760.jl | 2 +- examples/custom_8760_pmap.jl | 2 +- examples/timings.jl | 4 ++-- test/basics.jl | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/8760.jl b/examples/8760.jl index 0f73b6e5..c940660f 100644 --- a/examples/8760.jl +++ b/examples/8760.jl @@ -4,7 +4,7 @@ filename = joinpath(@__DIR__, "ckt5", "Master_ckt5.dss") @time dss(""" clear - compile $filename + compile "$filename" Solve ! This executes a snaphot power flow solution of the circuit diff --git a/examples/8760_pmap.jl b/examples/8760_pmap.jl index 0df05bec..1967250a 100644 --- a/examples/8760_pmap.jl +++ b/examples/8760_pmap.jl @@ -11,7 +11,7 @@ using OpenDSSDirect, Distributed filename = joinpath(@__DIR__, "ckt5", "Master_ckt5.dss") dss(""" clear - compile $filename + compile "$filename" Solve ! This executes a snaphot power flow solution of the circuit set mode=yearly number=$numhours """) diff --git a/examples/custom_8760.jl b/examples/custom_8760.jl index 348bc8d6..5e654494 100644 --- a/examples/custom_8760.jl +++ b/examples/custom_8760.jl @@ -8,7 +8,7 @@ filename = joinpath(basepath, "Master_ckt5.dss") @time dss(""" clear - compile $filename + compile "$filename" Solve ! This executes a snaphot power flow solution of the circuit """) diff --git a/examples/custom_8760_pmap.jl b/examples/custom_8760_pmap.jl index e7accec3..40a02652 100644 --- a/examples/custom_8760_pmap.jl +++ b/examples/custom_8760_pmap.jl @@ -10,7 +10,7 @@ using OpenDSSDirect, Distributed dss(""" clear - compile $filename + compile "$filename" Solve ! This executes a snaphot power flow solution of the circuit """) const nloads = Loads.Count() diff --git a/examples/timings.jl b/examples/timings.jl index c3a0e6ca..0faf3946 100644 --- a/examples/timings.jl +++ b/examples/timings.jl @@ -3,7 +3,7 @@ using OpenDSSDirect filename = abspath(joinpath(@__DIR__, "../examples/8500-Node/Master.dss")) OpenDSSDirect.Text.Command("clear") -OpenDSSDirect.Text.Command("redirect $filename") +OpenDSSDirect.Text.Command("redirect '$filename'") function setloads() for i = 1:1000 loadnumber = Loads.First() @@ -23,7 +23,7 @@ using OpenDSSDirect dss(""" clear - redirect $filename + redirect "$filename" """) function setloads2() for i = 1:1000 diff --git a/test/basics.jl b/test/basics.jl index 0f21b29b..c4041632 100644 --- a/test/basics.jl +++ b/test/basics.jl @@ -10,7 +10,7 @@ const DSS = OpenDSSDirect filename = string(normpath("$(dirname(@__FILE__))/../examples/8500-Node/Master.dss")) OpenDSSDirect.Text.Command(""" clear - redirect $filename + redirect "$filename" """) loadnumber = DSS.Loads.First() @test DSS.Loads.Name() == "138236b0" @@ -37,7 +37,7 @@ const DSS = OpenDSSDirect DSS.Text.Command(""" clear - redirect $filename + redirect "$filename" solve """)