Skip to content

Commit 6269d27

Browse files
committed
rename keyword outputdir to folder [skip ci]
1 parent 39770a1 commit 6269d27

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/ParameterSpace.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ result = analyse_function(g, params, 1.0)
7575
```
7676
"""
7777
function analyse_function(func::Function, Params, arg...;
78-
outputdir = "output",
78+
folder = "output",
7979
filename = "ParameterSpace_log.csv",
8080
kw...
8181
)
@@ -101,12 +101,12 @@ function analyse_function(func::Function, Params, arg...;
101101
end
102102
tuning[!, :result] = Any[]
103103

104-
if !isnothing(outputdir)
105-
if !isdir(outputdir)
106-
mkpath(outputdir)
104+
if !isnothing(folder)
105+
if !isdir(folder)
106+
mkpath(folder)
107107
end
108108

109-
file = open(joinpath(outputdir, filename), "w")
109+
file = open(joinpath(folder, filename), "w")
110110
write(file, join(names(tuning), ";") * "\n")
111111
end
112112

@@ -121,7 +121,7 @@ function analyse_function(func::Function, Params, arg...;
121121
coord = (Cases[c]..., result)
122122
push!(tuning, coord)
123123

124-
if !isnothing(outputdir)
124+
if !isnothing(folder)
125125
write(file, join(string.(coord), ";") * "\n")
126126
flush(file)
127127
end

0 commit comments

Comments
 (0)