go(plot): decouple extension from filename
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fc080c3b8e
commit
65b1ce02df
@ -99,11 +99,10 @@ func plotAllDims(algoStats []stats.Stats, fPrefix, fExt string, wg *sync.WaitGro
|
|||||||
util.SanitiseFName(dim.BenchName) + "-" +
|
util.SanitiseFName(dim.BenchName) + "-" +
|
||||||
fmt.Sprint(s.Dimens) + "D-" +
|
fmt.Sprint(s.Dimens) + "D-" +
|
||||||
fmt.Sprint(s.Generations) + "G-" +
|
fmt.Sprint(s.Generations) + "G-" +
|
||||||
fmt.Sprint(len(dim.Solution)) + "I" +
|
fmt.Sprint(len(dim.Solution)) + "I"
|
||||||
fExt
|
|
||||||
|
|
||||||
elapsed := time.Since(start)
|
elapsed := time.Since(start)
|
||||||
info := "saving img to file: " + filename +
|
info := "saving img to file: " + filename + fExt +
|
||||||
" [generated in " + fmt.Sprint(elapsed) + "]"
|
" [generated in " + fmt.Sprint(elapsed) + "]"
|
||||||
|
|
||||||
if s.Algo == "Random Search" {
|
if s.Algo == "Random Search" {
|
||||||
@ -116,7 +115,7 @@ func plotAllDims(algoStats []stats.Stats, fPrefix, fExt string, wg *sync.WaitGro
|
|||||||
if err := p.Save(
|
if err := p.Save(
|
||||||
pWidth,
|
pWidth,
|
||||||
pHeight,
|
pHeight,
|
||||||
filename,
|
filename+fExt,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user