"attempt to get argmax of an empty sequence" when performing energy probe

I was able to fix this by removing the sim.sims["loihi"].connect() and sim.sims["loihi"].close() lines, and by calling sim.run_steps() inside a with statement.

1 Like