fix typos

This commit is contained in:
kalmarek 2018-09-16 17:53:40 +02:00
parent b45adc2e00
commit 7dd061cdb7
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ function summarize(sett::PropertyT.Settings)
info("Solver: $(sett.solver)")
end
function Settings(Gr::PropertyTGroup, args, solver):
function Settings(Gr::PropertyTGroup, args, solver)
r = get(args, "radius", 2)
gr_name = PropertyTGroups.name(Gr)*"_r$r"
G = PropertyTGroups.group(Gr)
@ -32,14 +32,14 @@ function Settings(Gr::PropertyTGroup, args, solver):
ws = get(args, "warmstart", false)
if get(args, "nosymmetry", false)
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws)
else
autS = PropertyTGroups.autS(Gr)
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws, autS)
else
return PropertyT.Settings(gr_name, G, S, r, sol, ub, tol, ws)
end
end
function main(::PropertyTGroup, sett::Property.Settings)
function main(::PropertyTGroup, sett::PropertyT.Settings)
isdir(PropertyT.fullpath(sett)) || mkpath(PropertyT.fullpath(sett))
summarize(sett)

4
run.jl
View File

@ -98,8 +98,8 @@ solver(tol, iterations) =
# SDPA.SDPASolver(epsilonStar=tol, epsilonDash=tol)
const Gr = PropertyTGroups.PropertyTGroup(PARSEDARGS)
const sett = PropertyT.Settings(PARSEDARGS, Gr,
solver(args["tol"], args["iterations"]))
const sett = PropertyT.Settings(Gr, PARSEDARGS,
solver(PARSEDARGS["tol"], PARSEDARGS["iterations"]))
fullpath = PropertyT.fullpath(sett)
isdir(fullpath) || mkpath(fullpath)