Skip to content

Commit

Permalink
Examples/tests: add quotes in most compile/redirect commands.
Browse files Browse the repository at this point in the history
Closes #94
  • Loading branch information
PMeira committed Nov 2, 2023
1 parent 3ae865b commit 3bb1328
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/8760.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/8760_pmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
""")
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_8760.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
""")
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_8760_pmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions examples/timings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -23,7 +23,7 @@ using OpenDSSDirect

dss("""
clear
redirect $filename
redirect "$filename"
""")
function setloads2()
for i = 1:1000
Expand Down
4 changes: 2 additions & 2 deletions test/basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -37,7 +37,7 @@ const DSS = OpenDSSDirect

DSS.Text.Command("""
clear
redirect $filename
redirect "$filename"
solve
""")

Expand Down

0 comments on commit 3bb1328

Please sign in to comment.