I think this thread may be helpful to you. To summarize, in Nengo, you can clear probe data by doing:
- If you want to clear data from all of the probes, do:
sim.clear_probes()
- If you want to clear data from specific probes, do:
sim.model.params[<probe_obj>] = []
In NengoLoihi though, because of the way it stores the probe data, it looks like things are slightly different. If you look at the simulator code it seems like the clear_probes()
function is just a dummy function. However, further down, there is a function called collect_probe_output(<probe_obj>)
that seems to perform the probe recording and clearing behaviour you are looking for. Unfortunately, I don’t have access to the Loihi hardware to test this function out. Let me know if it works for you.