diff --git a/ch2/detector/detector.go b/ch2/detector/detector.go index 3e4498c..540fade 100644 --- a/ch2/detector/detector.go +++ b/ch2/detector/detector.go @@ -397,7 +397,7 @@ func (ss *Sim) ConfigGUI() { ss.GUI.CycleUpdateInterval = 10 nv := ss.GUI.AddNetView("Network") - nv.Params.MaxRecs = 300 + nv.Options.MaxRecs = 300 nv.SetNet(ss.Net) ss.ViewUpdate.Config(nv, etime.Cycle, etime.Cycle) ss.GUI.ViewUpdate = &ss.ViewUpdate diff --git a/ch3/faces/faces.go b/ch3/faces/faces.go index 5e8aa66..9e4aef2 100644 --- a/ch3/faces/faces.go +++ b/ch3/faces/faces.go @@ -571,7 +571,7 @@ func (ss *Sim) ConfigGUI() { ss.GUI.CycleUpdateInterval = 10 nv := ss.GUI.AddNetView("Network") - nv.Params.MaxRecs = 300 + nv.Options.MaxRecs = 300 nv.SetNet(ss.Net) ss.ViewUpdate.Config(nv, etime.Cycle, etime.Cycle) ss.GUI.ViewUpdate = &ss.ViewUpdate