From 45ec295b933f41d81f775e735a65031b14b97e87 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 3 Aug 2022 17:20:49 +0200 Subject: [PATCH] chore(go(plot)): check meanVals size --- algo/plot.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/algo/plot.go b/algo/plot.go index 50664c2..4aaf45a 100644 --- a/algo/plot.go +++ b/algo/plot.go @@ -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