chore(go(plot)): check meanVals size
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-08-03 17:20:49 +02:00
parent 8b4432ece1
commit 45ec295b93
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -30,6 +30,10 @@ func plotMeanVals(meanVals []float64, title string, fes int) *plot.Plot {
plotter.DefaultFont.Typeface = preferredFont
plotter.DefaultLineStyle.Width = vg.Points(2.0)
if fes != len(meanVals) {
log.Fatalf("meanVals - FES mismatch: %d vs %d , bailing\n", fes, len(meanVals))
}
p := plot.New()
p.Title.Text = "Mean - " + title